laserproxy: document deployment

Change-Id: I4461b8c392f79781247605315b2e1b744bbb1acb
changes/59/359/6
q3k 2020-07-30 21:41:56 +02:00 committed by q3k
parent d15f928516
commit 96074a7859
1 changed files with 11 additions and 0 deletions

View File

@ -15,3 +15,14 @@ Only one user is allowed at a time - to implement this mutual exclusion, a Locke
A lock is taken through a web interface by the user that wants to access the laser. A lock is taken through a web interface by the user that wants to access the laser.
When a lock is taken, the Locker will notify a Proxy worker about this address. The Proxy will then perform the UDP proxying. As traffic is proxied, the Proxy will send bump updates to the Locker to extend the lock deadline. When a lock is taken, the Locker will notify a Proxy worker about this address. The Proxy will then perform the UDP proxying. As traffic is proxied, the Proxy will send bump updates to the Locker to extend the lock deadline.
Deployment
----------
You'll need root access to customs.
bazel build --platforms=@io_bazel_rules_go//go/toolchain:openbsd_amd64 //hswaw/laserproxy
ssh root@customs supervisorctl stop laserproxy
scp bazel-bin/hswaw/laserproxy/laserproxy_/laserproxy root@customs:/var/laserproxy/laserproxy
ssh root@customs supervisorctl start laserproxy