commit 1ffaaf6abf3d7c480762003f73a40dc0c874f983
Author: John L. Villalovos <email address hidden>
Date: Wed Jan 13 14:13:20 2016 -0800
Add support for proxy servers during image build
When building the docker image, the 'apt-get' and 'pip install' that are
run inside the docker image will fail in a an environment that uses
proxy servers.
Support environments with proxy servers by dynamically propagating
'http_proxy', 'https_proxy', and 'no_proxy' into the docker environment
when running 'apt-get' and 'pip install'
This can not be done with either --env-file or --env as those are
arguments to 'docker run'. The command being run here is 'docker build'
Once Docker 1.9 is widely deployed, we should switch to using the 'ARG'
command which was added in Docker 1.9. Currently Ubuntu 14.04 uses
Docker 1.6. Using the ARG command will be a much cleaner solution.
Reviewed: https:/ /review. openstack. org/267219 /git.openstack. org/cgit/ openstack/ ironic- python- agent/commit/ ?id=1ffaaf6abf3 d7c480762003f73 a40dc0c874f983
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1ffaaf6abf3d7c4 80762003f73a40d c0c874f983
Author: John L. Villalovos <email address hidden>
Date: Wed Jan 13 14:13:20 2016 -0800
Add support for proxy servers during image build
When building the docker image, the 'apt-get' and 'pip install' that are
run inside the docker image will fail in a an environment that uses
proxy servers.
Support environments with proxy servers by dynamically propagating
'http_proxy', 'https_proxy', and 'no_proxy' into the docker environment
when running 'apt-get' and 'pip install'
This can not be done with either --env-file or --env as those are
arguments to 'docker run'. The command being run here is 'docker build'
Once Docker 1.9 is widely deployed, we should switch to using the 'ARG'
command which was added in Docker 1.9. Currently Ubuntu 14.04 uses
Docker 1.6. Using the ARG command will be a much cleaner solution.
Change-Id: Idd994cd58b9fb7 5bae13a43fc8363 c36f113527d
Closes-Bug: #1533796