From c8e960db04e3ebbab121912676afcf3f489721e2 Mon Sep 17 00:00:00 2001
From: Gorka Benguria <gorka.benguria@tecnalia.com>
Date: Fri, 11 Feb 2022 14:16:52 +0100
Subject: [PATCH] externalizes config as variable in dockerfile

---
 Dockerfile                      | 3 ++-
 adapt-config-json.sh            | 1 +
 src/assets/config-template.json | 1 +
 src/assets/config.json          | 1 -
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 4481abeb..6f633c49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -34,5 +34,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 \
+	BIKETRAJECTORY_API_BASE_URL=http://localhost:8000/urbanite_biketrajectories
 	
diff --git a/adapt-config-json.sh b/adapt-config-json.sh
index e6107152..a8b837da 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|__BIKETRAJECTORY_API_BASE_URL__|$BIKETRAJECTORY_API_BASE_URL|g" $FILE
diff --git a/src/assets/config-template.json b/src/assets/config-template.json
index 9f21ae4b..22cdca84 100644
--- a/src/assets/config-template.json
+++ b/src/assets/config-template.json
@@ -10,6 +10,7 @@
     "traffic_prediction_api_base_url":"__TRAFFIC_PREDICTION_API_BASE_URL__",
     "bike_analysis_api_base_url":"__BIKE_ANALYSIS_API_BASE_URL__",
     "gltraffic_api_base_url":"__GLTRAFFIC_API_BASE_URL__", 
+    "biketrajectory_api_base_url":"__BIKETRAJECTORY_API_BASE_URL__",
     "bus_od_api_base_url":"__BUS_OD_API_BASE_URL__",
     "idra_base_url":"__IDRA_BASE_URL__",
     "idra_portal_base_href":"IdraPortal",
diff --git a/src/assets/config.json b/src/assets/config.json
index 5c6f7d37..ded15d95 100644
--- a/src/assets/config.json
+++ b/src/assets/config.json
@@ -43,5 +43,4 @@
     "jsi":{
         "traffic_sim_server":"http://localhost:8081"
     }
-
 }
-- 
GitLab