Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proxy for deployment in proxy environment #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM ubuntu:14.04
MAINTAINER Christoph Wiechert <wio@psitrax.de>
MAINTAINER https://github.com/henszey

COPY apt.conf /etc/apt/apt.conf
COPY enviroment /etc/enviroment
RUN . /etc/enviroment

RUN apt-get update
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get install -y nodejs
Expand Down
1 change: 1 addition & 0 deletions apt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Acquire::http::proxy "<http_proxy>";
20 changes: 20 additions & 0 deletions enviroment
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

# Proxy
socks_user=<socket user>
SOCKS_USER=<socket user>
socks5_passwd=<password>
socks5_password=<password>
socks5_passwd=<password>
SOCKS5_PASSWORD=<password>


# Set no proxy
no_proxy=127.0.0.1,172.17.0.0/24
NO_PROXY=127.0.0.1,172.17.0.0/24

http_proxy="<http proxy>"
https_proxy="<https proxy>"
HTTP_PROXY="<http proxy>"
HTTPS_PROXY="<https proxy>"
socks_proxy="<socket proxy>"