Praqma / staci

Containerizing the Atlassian tools stack. Jira, Confluence, Bamboo and a MySQL database.
MIT License
12 stars 5 forks source link

STACI should be able to use proxy server to connect to the internet #40

Open hoeghh opened 8 years ago

hoeghh commented 8 years ago

When building the containers, Docker needs to get things from the internet. At some companies, they have a proxy as the only way to get online stuff.

We need to be able to use a proxyserver for building and running our containers. Something like this in base images Dockerfile:

    ENV http_proxy="proxyserver:port"
    ENV https_proxy=$http_proxy
    ENV HTTP_PROXY=$http_proxy
    ENV HTTPS_PROXY=$http_proxy
    ENV no_proxy="localhost,127.0.0.1,container-hostname,"

Then we need to make Jira and the other applications able to use the proxy as well, at runtime.

For jira, this can be done by adding this to /opt/atlassian/jira/bin/setenv.sh

JVM_SUPPORT_RECOMMENDED_ARGS="-Dhttp.proxyHost=proxy.example.org -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.example.org -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost"

If it works on the other Atlassian products, needs to be found out. And we need some way of testing this.

The staci.properties needs fields for these variables, and some way to put it into the base image Dockerfile.