Commit Graph

2 Commits

Author SHA1 Message Date
Jay Faulkner 7f69144886 Remove old, unused proxy.sh file
This should've been removed with the rest of the contents of imagebuild/

Change-Id: I2ce3ad155d2963352daa5ea8d983d35e8f41eb19
2023-01-03 12:45:50 -08:00
John L. Villalovos 1ffaaf6abf 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: Idd994cd58b9fb75bae13a43fc8363c36f113527d
Closes-Bug: #1533796
2016-02-04 14:27:49 -08:00