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

Set http_proxy for Docker build. #751

Merged
merged 1 commit into from Dec 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
@@ -1,4 +1,6 @@
FROM java:8-jre
ARG http_proxy
ENV http_proxy ${http_proxy}

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E56151BF \
&& echo "deb http://repos.mesosphere.com/debian jessie-unstable main" | tee /etc/apt/sources.list.d/mesosphere.list \
Expand All @@ -9,7 +11,6 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E56151BF \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


ADD ./tmp/chronos.jar /chronos/chronos.jar
ADD bin/start.sh /chronos/bin/start.sh
ENTRYPOINT ["/chronos/bin/start.sh"]
2 changes: 1 addition & 1 deletion build-release.sh
Expand Up @@ -38,7 +38,7 @@ docker run -e http_proxy=$http_proxy -v `pwd`:/mnt/build --entrypoint=/bin/sh ma
"

# build image
docker build -t mesosphere/chronos:$image_tag .
docker build --build-arg http_proxy=$http_proxy -t mesosphere/chronos:$image_tag .

if [ ! -z ${DOCKER_HUB_USERNAME+x} -a ! -z ${DOCKER_HUB_PASSWORD+x} ]; then
# login to dockerhub
Expand Down