From 3ef79257cf659dff0aedea31e39da97d2050d08b Mon Sep 17 00:00:00 2001 From: Gorka Benguria <gorka.benguria@tecnalia.com> Date: Fri, 11 Feb 2022 12:51:19 +0100 Subject: [PATCH] process od bus variable --- Dockerfile | 7 +++---- adapt-config-json.sh | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4481abeb..e376a197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,6 @@ RUN npm install COPY . /app RUN npm run build -- --prod --aot --base-href $BASE_HREF - - FROM nginx COPY docker-entrypoint.sh /docker-entrypoint.sh COPY adapt-config-json.sh /adapt-config-json.sh @@ -34,5 +32,6 @@ ENV DASHBOARD_BASE_URL=http://localhost:4200 \ IDRA_BASE_URL=http://localhost:8080 \ DATALET_BASE_URL=http://localhost/deep/deep-components/creator.html \ TRAFFICSIMSERVER_API_BASE_URL=http://localhost:8081 \ - DASHBOARD_CTRL_API_BASE_URL=http://localhost:8085 - + DASHBOARD_CTRL_API_BASE_URL=http://localhost:8085 \ + BUS_OD_API_BASE_URL=http://localhost:8000/busesod + diff --git a/adapt-config-json.sh b/adapt-config-json.sh index e6107152..d97180f5 100644 --- a/adapt-config-json.sh +++ b/adapt-config-json.sh @@ -17,3 +17,4 @@ sed -i -e "s|__IDRA_BASE_URL__|$IDRA_BASE_URL|g" $FILE sed -i -e "s|__DATALET_BASE_URL__|$DATALET_BASE_URL|g" $FILE sed -i -e "s|__TRAFFICSIMSERVER_API_BASE_URL__|$TRAFFICSIMSERVER_API_BASE_URL|g" $FILE sed -i -e "s|__DASHBOARD_CTRL_API_BASE_URL__|$DASHBOARD_CTRL_API_BASE_URL|g" $FILE +sed -i -e "s|__BUS_OD_API_BASE_URL__|$BUS_OD_API_BASE_URL|g" $FILE -- GitLab