Use venv for base hub environment

- TLJH should support raspberry pi, which runs ARM. conda does
  not support ARM.
- Get nodejs from nodesource instead of conda or default repositories.
  Default repositories get out of date pretty quickly.
- Install CHP from npm
This commit is contained in:
yuvipanda
2018-07-19 17:30:09 -07:00
parent 5007911d59
commit fc0ecb6699
6 changed files with 227 additions and 117 deletions

View File

@@ -15,9 +15,7 @@ PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
EnvironmentFile={install_prefix}/state/configurable-http-proxy.secret
# Set PATH so env can find correct node
Environment=PATH=$PATH:{install_prefix}/hub/bin
ExecStart={install_prefix}/hub/bin/configurable-http-proxy \
ExecStart={install_prefix}/hub/node_modules/.bin/configurable-http-proxy \
--ip 0.0.0.0 \
--port 80 \
--api-ip 127.0.0.1 \