Skip to content

Commit

Permalink
feat: add extra /app/config directory for providing SB config
Browse files Browse the repository at this point in the history
  • Loading branch information
trietsch committed Nov 1, 2023
1 parent 685e9b6 commit d2ca87b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ COPY --from=envoy /usr/local/bin/envoy /usr/local/bin/envoy

WORKDIR /app
COPY . ./
RUN mkdir -p /app/config

RUN echo "${version}" > VERSION
ENV APP_VERSION "${version}"
Expand All @@ -19,4 +20,7 @@ EXPOSE 9090
# gRPC server
EXPOSE 50051

# Ensure that the /app/config dir can be used for extra configuration files.
ENV SPRING_PROFILES_ACTIVE "docker"

ENTRYPOINT [ "./startup.sh" ]
3 changes: 3 additions & 0 deletions app/src/main/resources/application-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
spring:
config:
import: file:///app/config/
2 changes: 2 additions & 0 deletions app/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
spring:
config:
import: file:///Users/trietsch/banana/
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/pace
Expand Down

0 comments on commit d2ca87b

Please sign in to comment.