Adding support for Environment variables with sudo -E
This commit is contained in:
11
README.md
11
README.md
@@ -40,10 +40,13 @@ docker build -t quay.io/attcomdev/promenade:experimental .
|
||||
|
||||
## Using Promenade Behind a Proxy
|
||||
|
||||
Modify the `genesis.sh` and `proxy.sh` scripts, passing in the URL and ports of the proxy server relative to the cluster hosts:
|
||||
To use Promenade from behind a proxy, simply export `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment variables on the vagrant host prior to executing the `genesis.sh` and `join.sh` scripts respectively. Alternatively, you may also export the `DOCKER_HTTP_PROXY`, `DOCKER_HTTPS_PROXY`, and `DOCKER_NO_PROXY` directly. Ensure you are running the script with `sudo -E` option to preserve the environment variables.
|
||||
|
||||
```bash
|
||||
DOCKER_HTTP_PROXY="http://proxy.server.com:8080"
|
||||
DOCKER_HTTPS_PROXY="https://proxy.server.com:8080"
|
||||
DOCKER_NO_PROXY="localhost,127.0.0.1"
|
||||
vagrant ssh n0
|
||||
cd /vagrant
|
||||
export DOCKER_HTTP_PROXY="http://proxy.server.com:8080"
|
||||
export DOCKER_HTTPS_PROXY="https://proxy.server.com:8080"
|
||||
export DOCKER_NO_PROXY="localhost,127.0.0.1"
|
||||
sudo -E /vagrant/genesis.sh /vagrant/example/vagrant-config.yaml
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user