Comment 3 for bug 1533796

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/267219
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=1ffaaf6abf3d7c480762003f73a40dc0c874f983
Submitter: Jenkins
Branch: master

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.

    Change-Id: Idd994cd58b9fb75bae13a43fc8363c36f113527d
    Closes-Bug: #1533796