Skip to content

Commit 6d2899c

Browse files
committed
adapted dockerfile and properties template for authentication chagnes
1 parent 0d7beea commit 6d2899c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.docker/application.properties.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ spring.jpa.properties.hibernate.show_sql=true
1515
spring.jpa.properties.hibernate.format_sql=true
1616
spring.jpa.properties.hibernate.use_sql_comments=true
1717
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
18-
spring.liquibase.enabled={{default .Env.PATTERN_ATLAS_FETCH_INITIAL_DATA "false"}}
18+
spring.liquibase.enabled=true
19+
spring.liquibase.change-log=file:patternatlas.xml
1920
spring.liquibase.password={{.Env.DB_INIT_PASSWORD}}
2021
spring.liquibase.user={{.Env.DB_INIT_USER}}
21-
spring.liquibase.url=jdbc:postgresql://{{.Env.JDBC_DATABASE_URL}}:{{.Env.JDBC_DATABASE_PORT}}/{{.Env.JDBC_DATABASE_NAME}}
22+
spring.liquibase.url=jdbc:postgresql://{{.Env.JDBC_DATABASE_URL}}:{{.Env.JDBC_DATABASE_PORT}}/{{.Env.JDBC_DATABASE_NAME}}
23+
security.oauth2.resource.jwk.key-set-uri={{.Env.JWK_URI}}

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ ENV JDBC_DATABASE_NAME postgres
3636
ENV JDBC_DATABASE_PORT 5060
3737
ENV HAL_EXPLORER true
3838

39+
ENV JWK_URI "http://localhost:8080/realms/patternatlas/protocol/openid-connect/certs"
40+
3941
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
4042
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
4143
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

0 commit comments

Comments
 (0)