Skip to content

Commit

Permalink
Upgrade JRE image patch version when running back-end services
Browse files Browse the repository at this point in the history
From `11.0.21` to `11.0.23`
  • Loading branch information
dabico committed Jun 7, 2024
1 parent e98ed36 commit 4bbc9f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion deployment/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ DATABASE_USER=$DATABASE_USER
DATABASE_PASS=$DATABASE_PASS
DATABASE_PORT=$DATABASE_PORT

SERVER_PORT=$SERVER_PORT
SERVER_MAIL_ADDR=$SERVER_MAIL_ADDR
SERVER_MAIL_PASS=$SERVER_MAIL_PASS
SERVER_SECURITY_USER=$SERVER_SECURITY_USER
Expand Down
2 changes: 0 additions & 2 deletions deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ services:
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASS: ${DATABASE_PASS}
SERVER_PORT: ${SERVER_PORT}
SERVER_MAIL_ADDR: ${SERVER_MAIL_ADDR}
SERVER_MAIL_PASS: ${SERVER_MAIL_PASS}
SERVER_SECURITY_USER: ${SERVER_SECURITY_USER}
Expand Down Expand Up @@ -110,7 +109,6 @@ services:
dockerfile: deployment/website/Dockerfile
args:
WEBSITE_PORT: ${WEBSITE_PORT}
SERVER_URL: https://localhost:${SERVER_PORT}/api
networks:
- default
restart: always
Expand Down
4 changes: 3 additions & 1 deletion deployment/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ RUN apk update --quiet && \

ENTRYPOINT java $JAVA_OPTS -jar server.jar

EXPOSE 8080

HEALTHCHECK \
--start-period=30s \
--interval=60s \
--timeout=5s \
--retries=5 \
CMD curl --silent --fail --request GET http://localhost:$SERVER_PORT/api || exit 1
CMD curl --silent --fail --request GET http://localhost:8080/api || exit 1
2 changes: 1 addition & 1 deletion dl4se-server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Server Configuration
server.servlet.context-path=/api
server.port=${SERVER_PORT:8080}
server.port=8080

# Banner Configuration
spring.banner.location=classpath:banner.txt
Expand Down

0 comments on commit 4bbc9f2

Please sign in to comment.