From 7204236fe8e23dcaeeb2faf4665c94fc43f14798 Mon Sep 17 00:00:00 2001 From: Johann Frei Date: Thu, 15 Apr 2021 00:22:21 +0200 Subject: [PATCH] Add offline patch into scripts --- .../offline_01_2-extract_Docker_images.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/offline_deployment/offline_01_2-extract_Docker_images.sh b/offline_deployment/offline_01_2-extract_Docker_images.sh index 2b41725c..052e3c7e 100755 --- a/offline_deployment/offline_01_2-extract_Docker_images.sh +++ b/offline_deployment/offline_01_2-extract_Docker_images.sh @@ -18,6 +18,19 @@ RUN apk add -U --no-cache py3-requests \\\ \ FROM nginx|' ../nginx/Dockerfile +# Modify Dockerfile for app to add python3 and offline patch +# TODO: Remark: Not needed due to SPA frontend +#sed -i 's|COPY ./Pipfile\* /app/|COPY ./Pipfile\* /app/\ +#COPY offline_deployment/offline_patcher.py /patch.py\ +#RUN apt-get update \ +# \&\& apt-get install -y --no-install-recommends \ +# python3 python3-requests \ +# \&\& apt-get clean \\\ +# \&\& rm -rf /var/lib/apt/lists/\*\ +# \&\& mkdir -p /app/server/static/offline \&\& python3 /patch.py /app/server /server/static/offline\ +#\ +#|' ../app/Dockerfile.prod + docker-compose -f ../docker-compose.prod.yml pull docker-compose -f ../docker-compose.prod.yml build