From: Jérôme Benoit Date: Sun, 30 May 2021 12:52:40 +0000 (+0200) Subject: Add tags file handling to docker image. X-Git-Tag: v1.0.2-6~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b79579e21c385c340738f3541ce6464b0eb2125f;p=e-mobility-charging-stations-simulator.git Add tags file handling to docker image. Signed-off-by: Jérôme Benoit --- 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