From b79579e21c385c340738f3541ce6464b0eb2125f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 30 May 2021 14:52:40 +0200 Subject: [PATCH] Add tags file handling to docker image. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- docker/Dockerfile | 1 + docker/autoconfig.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 46ca0102..8884e89e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,6 +8,7 @@ RUN npm set progress=false && npm config set depth 0 && npm cache clean --force RUN npm install COPY tsconfig.json rollup.config.js ./ COPY src ./src +COPY src/assets/authorization-tags-template.json ./src/assets/authorization-tags.json COPY docker/config.json ./src/assets/config.json RUN npm run build diff --git a/docker/autoconfig.sh b/docker/autoconfig.sh index 4d188219..7b35536c 100644 --- a/docker/autoconfig.sh +++ b/docker/autoconfig.sh @@ -7,7 +7,8 @@ then [ -z $emobility_server_type ] && { echo "emobility env server type variable not found, exiting"; exit 1; } [ -z $emobility_service_type ] && { echo "emobility env service type variable not found, exiting"; exit 1; } - cp $emobility_install_dir/src/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/assets/config.json + cp $emobility_install_dir/dist/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/assets/config.json + cp $emobility_install_dir/dist/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape-tags.json $emobility_install_dir/dist/assets/authorization-tags.json else echo "no emobility env defined, start with default configuration" fi -- 2.34.1