Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions dockers/docker-sonic-mgmt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,14 @@ RUN tar -xvzf azure-cli_bundle.tar.gz
RUN azure-cli_bundle_*/installer

RUN git clone https://github.com/Azure/sonic-mgmt

# Forward all proxy settings from 'docker run' command line to container scope startup script.
# So even ssh client has them. All env variables are optional
# Sample command:
# docker run -e "http_proxy=ip1" -e "ftp_proxy=ip2" -it <image>
#
ENTRYPOINT bash -c "sudo touch /etc/profile.d/proxy.sh \
&& echo 'export http_proxy=${http_proxy}' | sudo tee -a /etc/profile.d/proxy.sh \
&& echo 'export https_proxy=${https_proxy}' | sudo tee -a /etc/profile.d/proxy.sh \
&& echo 'export ftp_proxy=${ftp_proxy}' | sudo tee -a /etc/profile.d/proxy.sh \
&& bash"