Logo
Explore Get Started
openstack/ironic-python-agent
Code Issues Proposed changes
Files
1aa7269c7c47c05c4e62c328fd4b56c38ee406fc
BranchesTags
View all branches
ironic-python-agent/proxy.sh

7 lines
113 B
Bash
Raw Normal View History

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-01-13 14:13:20 -08:00
#!/bin/sh
# Have things work for users who didn't run with the
# imagebuild/coreos/docker_build.bash script
$*
Copy Permalink
Powered by Gitea Version: v1.24.2 Page: 466ms Template: 10ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API