Skip to content

Commit

Permalink
Extract LAMASSU_BASE_URL as env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Sep 11, 2023
1 parent 035c0b1 commit 276af2e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LAMASSU_IMAGE=mfdz/lamassu:latest
LAMASSU_PORT=8500
LAMASSU_ADMIN_PORT=9002
LAMASSU_ADMIN_PASSWORD=secret
LAMASSU_BASE_URL=http://lamassu:8080

# postgis variables
IPL_POSTGIS_IMAGE=postgis/postgis:15-3.3-alpine
Expand All @@ -29,5 +30,3 @@ DAGSTER_POSTGRES_USER=postgres_user
DAGSTER_POSTGRES_PASSWORD=postgres_password
DAGSTER_POSTGRES_DB=postgres_db

# Pipeline variables
IPL_LAMASSU_BASE_URL=http://lamassu:8080
1 change: 1 addition & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
LAMASSU_ADMIN_PASSWORD=
LAMASSU_BASE_URL=http://10.70.172.11:8500
IPL_POSTGRES_PASSWORD=
DEER_USER=
DEER_PASSWORD=
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
- ${LAMASSU_ADMIN_PORT}:9001
environment:
# depending on base image, JAVA_TOOL_OPTIONS must be used
LAMASSU_BASE_URL: ${LAMASSU_BASE_URL}
JDK_JAVA_OPTIONS:
-Dspring.config.location=/etc/application-config/application.properties
-Dspring.profiles.active=leader
Expand Down Expand Up @@ -99,7 +100,7 @@ services:
- DAGSTER_POSTGRES_USER
- DAGSTER_POSTGRES_PASSWORD
- DAGSTER_POSTGRES_DB
- IPL_LAMASSU_BASE_URL
- IPL_LAMASSU_BASE_URL=${LAMASSU_BASE_URL}
- IPL_POSTGRES_HOST=ipl-db
- IPL_POSTGRES_PORT
- IPL_POSTGRES_DB
Expand Down
2 changes: 1 addition & 1 deletion etc/lamassu/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ org.entur.lamassu.feedproviders=file:/etc/application-config/feedproviders.yml
org.entur.lamassu.targetGbfsVersion=2.3

## Base URL for API (needed for URL transformations)
org.entur.lamassu.baseUrl=http://10.70.172.11:8500
org.entur.lamassu.baseUrl=${LAMASSU_BASE_URL}

## Host / IP of internal load balancer for internal endpoints (Entur)
org.entur.lamassu.internalLoadBalancer=http://localhost:8080
Expand Down

0 comments on commit 276af2e

Please sign in to comment.