Set up for remote work¶
This remote work guide describes a setup in which your local machine will act as a thin client to your machine in the office, allowing you to edit code and access hosted instances.
You will need VPN access to Seqpipe’s internal network and ssh.
Additionally, if you use VSCode or a non-terminal-based editor you will have to set that up as well, either through inbuilt SSH functionality or via sshfs. VSCode documentation online provides information on how to set it up.
Set up the VPN connection to the office. You will need credentials (if you have none or have lost yours, ask in the Zulip chat). Follow the guide provided in the
seqpipe-infrastructurerepository here.Test your VPN connection by pinging the machine you wish to connect to. If pinging with
machinename.localdoesn’t work, you’ll need the machine’s IP (see the table below). If nothing works, ask for help in the Zulip chat.SSH into your machine. To avoid having to open up multiple ssh connections for each terminal you need, use tmux.
Go to gpf and edit the
CORS_ORIGIN_WHITELISTvariable inwdae/wdae/wdae/settings.pyto include the IP address of your machine (with port 4200 of the Angular dev server):CORS_ORIGIN_WHITELIST = [ "http://10.0.2.253:4200", ]
Go to gpfjs and change the
basePathvariable insrc/environments/environment.tsto the IP address of your machine (with port 8000 of the Django dev server):const basePath = 'http://10.0.2.253:8000';
Run the gpf and gpfjs servers with the following commands:
wdaemanage.py 0.0.0.0:8000ng serve --host 0.0.0.0
Ready to work. Access gpfjs at
{machine IP}:4200from your browser.
Table of machines in the office and their IP addresses:
Machine |
IP address |
|---|---|
dory |
10.0.1.1 |
nemo |
10.0.1.2 |
pooh |
10.0.1.6 |
piglet |
10.0.1.7 |
kowalski |
10.0.2.239 |
felix |
10.0.2.251 |
shifu |
10.0.2.252 |
simba |
10.0.2.253 |
eyoree |
10.0.2.237 |