Background
In your IT environment, often internet access is restricted and requires the use of proxy configurations. This guide helps configure your StorReduce instance to use proxies in order to maintain YUM repository access and Docker repository access for installations and updates.
General cURL commands
In the setup guides for StorReduce, you may need to execute cURL commands during setup. If that is the case, ensure the following is run before proceeding:
export http_proxy=http://username:password@proxy.example.com:<proxy_port>
export https_proxy=https://username:password@proxy.example.com:<proxy_port>
If your username or password contains an ‘@’ symbol, please substitute this with a ‘\@’ symbol. Similarly, substitute ‘\’ with ‘\’.
YUM Repositories
If you are behind a proxy, StorReduce needs to have YUM repositories configured as follows:
Once /etc/yum.repos.d/storreduce.repo is configured, add the fields to the configuration:
proxy=proxy.example.com:<proxy_port>
proxy_username=example_user
proxy_password=example_password
Docker Repositories
If you are behind a proxy, StorReduce needs to have Docker repositories configured as follows:
In file:
/etc/sysconfig/docker
HTTP_PROXY="http://username:password@proxy.example.com:<proxy_port>"
HTTPS_PROXY="https://username:password@proxy.example.com:<proxy_port>"
http_proxy="${HTTP_PROXY}"
https_proxy="${HTTPS_PROXY}"
If your username or password contains an ‘@’ symbol, please substitute this with a ‘\@’ symbol. Similarly, substitute ‘\’ with ‘\\‘.
Then, perform sudo service docker restart
.
StorReduce Initial Setup
When running storreducectl server init
, ensure you run it with flags specifying the proxy; e.g.:
storreducectl server init --docker_run_args="-e NO_PROXY=<monitor-server-address> -e HTTP_PROXY=http://username:password@proxy.example.com:<proxy_port> -e HTTPS_PROXY=https://username:password@proxy.example.com:<proxy_port>"