Add tags file handling to docker image.
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 May 2021 12:52:40 +0000 (14:52 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 May 2021 12:52:40 +0000 (14:52 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
docker/Dockerfile
docker/autoconfig.sh

index 46ca0102c1e0ad1e7b7d86c4c56b3ef38075565d..8884e89ebaba05e519ab5f532f3588c6b60a99e2 100644 (file)
@@ -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
 
index 4d18821962bbee51077fe95297ba7b06c81f7429..7b35536cc11fb6a1f3d6bd0112ebf978b84e25ea 100644 (file)
@@ -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