From dd9b8d6f530f95d5cea301ef4735bb16cbf6fd10 Mon Sep 17 00:00:00 2001 From: Tochiori Yasufumi Date: Thu, 19 Aug 2021 17:40:53 +0900 Subject: [PATCH] Support proxy Closes #2 --- docker-compose.yml | 16 +++++++++++++--- nginx/Dockerfile | 4 ++++ personium/Dockerfile | 4 ++++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 55af682..691e167 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,7 +38,12 @@ services: retries: 10 personium: - build: personium + build: + context: personium + args: + - http_proxy=${http_proxy} + - https_proxy=${https_proxy} + - no_proxy=${no_proxy} ports: - 8080:8080 networks: @@ -55,7 +60,12 @@ services: retries: 10 nginx: - build: nginx + build: + context: nginx + args: + - http_proxy=${http_proxy} + - https_proxy=${https_proxy} + - no_proxy=${no_proxy} ports: - 443:443 - 80:80 @@ -71,4 +81,4 @@ volumes: networks: frontend: mq: - backend: \ No newline at end of file + backend: diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 06982d9..b10d8a3 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,5 +1,9 @@ FROM nginx:1.14 +ARG http_proxy +ARG https_proxy +ARG no_proxy + RUN apt-get update && apt-get install -y \ vim \ curl \ diff --git a/personium/Dockerfile b/personium/Dockerfile index 35140e3..bb1300b 100644 --- a/personium/Dockerfile +++ b/personium/Dockerfile @@ -1,5 +1,9 @@ FROM tomcat:9-jdk8-adoptopenjdk-hotspot +ARG http_proxy +ARG https_proxy +ARG no_proxy + ENV CORE_VER=1.7.21 ENV ENGINE_VER=1.5.27 ENV PERSONIUM_REPO=https://personium.io/mvnrepo/