Skip to content

The auto upload machine

Athanaseus Javas Ramaila edited this page Mar 7, 2023 · 7 revisions

Somewhere in a galaxy far far away lives an amazon small instance that uploads casacore data packages. On this machine, an administrator typed the commands below to bring the machine in the state it was meant to be.

First, make a packaging group:

$  sudo addgroup packaging

Add the packagers to this group:

$ sudo adduser gijs packaging
$ sudo adduser athanaseus packaging

Now install the required Debian packages:

$  sudo apt install git git-buildpackage debhelper

Make a home for the packaging action:

$ sudo mkdir /packaging
$ sudo chgrp packaging /packaging
$ sudo chmod g+w /packaging
$ cd /packaging

Now pull in the casacore data repository:

$ cd /packaging
$ git clone https://github.com/kernsuite-debian/casacore-data
$ cd /packaging/casacore-data

Copy the KERN public and secret key from your ultra-secure storage to the machine and import them:

$ gpg --import *.key

Create a ssh key pair:

$ ssh-key-gen

Now copy the key and paste it into the deployment keys of the casacore data repo. Don't forget to add write access:

cat ~/.ssh/id_rsa.pub 
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8EI/x7nLFfsJZfbMdHJJEAXYiwi74AoFj/K/BKmFocb8iztfOQfKp5FVyw+EAj0GfUELp+jEX7vLrjfV0ybyWeutYiK+rcEgSRu74Sd2gHmmWLuYfdgkDSDFSLKFPOSIEFSDFSDUOISUVVVvvvvBcAXtRhDRVT9lO6TFzqKNSDlWxfUyNbfltYWaKjVQ8qmdNyhZKM8cdjXIZmzBAHAHAHAHAHHAHAHAH5jru81hDvnPdF+VF9/3YOR2GvMnD2/Dx4tD0LHwtvCcK+bO/N9nyA7O1YpkqmZWAaYxcIrOOwOjWiKZiRiR0lINVnHMncf9ifdevuXMsM16D97FgwAr0Z8QyBTrltG1kVj23PnTAOGwVgiy98ftDcSEjV1ABOSGdiJXZlatDJd32ngiM= gijs@upload-machine

Now you are all set! try out the update script in the casacore-data debian folder:

$ cd casacore-data
$ debian/update

If everything is correctly setup up, a shiny new casacore-data will be uploaded to all kern archives.

Clone this wiki locally