produzione 1 #9

Merged
JoeKung merged 135 commits from dev into main 2026-03-03 09:58:04 +01:00
3 changed files with 17 additions and 2 deletions
Showing only changes of commit ab5f6a609d - Show all commits

View File

@@ -41,4 +41,6 @@ COPY profiles ./profiles
EXPOSE 8080 EXPOSE 8080
CMD ["java", "-jar", "app.jar"] COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

13
backend/entrypoint.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
echo "----------------------------------------------------------------"
echo "Starting Backend Application"
echo "DB_URL: $DB_URL"
echo "DB_USERNAME: $DB_USERNAME"
echo "SLICER_PATH: $SLICER_PATH"
echo "----------------------------------------------------------------"
# Exec java with explicit properties from env
exec java -jar app.jar \
--spring.datasource.url="${DB_URL}" \
--spring.datasource.username="${DB_USERNAME}" \
--spring.datasource.password="${DB_PASSWORD}"

View File

@@ -17,7 +17,7 @@ services:
restart: always restart: always
volumes: volumes:
- backend_profiles_${ENV}:/app/profiles - backend_profiles_${ENV}:/app/profiles
command: ["sh", "-c", "echo 'DB_URL IS: $DB_URL'; java -jar app.jar --spring.datasource.url=${DB_URL} --spring.datasource.username=${DB_USERNAME} --spring.datasource.password=${DB_PASSWORD}"]
frontend: frontend:
image: ${REGISTRY_URL}/${REPO_OWNER}/print-calculator-frontend:${TAG} image: ${REGISTRY_URL}/${REPO_OWNER}/print-calculator-frontend:${TAG}