...
 
Commits (3)
......@@ -3,12 +3,56 @@
start-vms:
vagrant up
install-central: start-vms
@test $(CENTRAL_SRC)
BOUNDERY_SSHCONF=build/boundery.sshconf
boundery-sshconf: $(BOUNDERY_SSHCONF)
$(BOUNDERY_SSHCONF): start-vms
@mkdir -p build
@vagrant ssh-config boundery.me | grep -v User > build/boundery.sshconf
@vagrant ssh-config boundery.me | grep -v User > $@
vagrant ssh boundery.me -c 'sudo cp -r .ssh /root/'
upload-central: start-vms $(BOUNDERY_SSHCONF)
@test $(CENTRAL_SRC)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
vagrant upload $(CENTRAL_SRC)/setupserver /tmp/setupserver boundery.me
vagrant ssh boundery.me -c 'echo fakepasswd | sudo /tmp/setupserver'
vagrant ssh boundery.me -c 'sudo cp -r .ssh /root/'
SERVER=boundery.me SSH_CONF=`readlink -f build/boundery.sshconf` make -C $(CENTRAL_SRC) deploy
SERVER=boundery.me SSH_CONF=`readlink -f $(BOUNDERY_SSHCONF)` make -C $(CENTRAL_SRC) deploy
upload-linux: start-vms $(BOUNDERY_SSHCONF)
@test $(CLIENT_SRC)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(CLIENT_SRC) linux
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/clients'
scp -F $(BOUNDERY_SSHCONF) $(CLIENT_SRC)/linux/*.tar.gz \
root@boundery.me:/root/data/sslnginx/html/clients/
upload-windows: start-vms $(BOUNDERY_SSHCONF)
@test $(CLIENT_SRC)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(CLIENT_SRC) windows
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/clients'
scp -F $(BOUNDERY_SSHCONF) $(CLIENT_SRC)/windows/*.msi \
root@boundery.me:/root/data/sslnginx/html/clients/
upload-macos: start-vms $(BOUNDERY_SSHCONF)
@test $(CLIENT_SRC)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(CLIENT_SRC) macos
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/clients'
scp -F $(BOUNDERY_SSHCONF) $(CLIENT_SRC)/macOS/*.dmg \
root@boundery.me:/root/data/sslnginx/html/clients/
upload-pczip: start-vms
@test $(OS_SRC)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(OS_SRC) pc_zip
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/images'
scp -F $(BOUNDERY_SSHCONF) $(OS_SRC)/build/amd64/images/pc.zip \
root@boundery.me:/root/data/sslnginx/html/images/
upload-rpi3zip: start-vms
@test $(OS_SRC)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(OS_SRC) rpi3_zip
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/images'
scp -F $(BOUNDERY_SSHCONF) $(OS_SRC)/build/arm64/images/rpi3.zip \
root@boundery.me:/root/data/sslnginx/html/images/