Skip to content

Commit

Permalink
Merge pull request #269 from wultra/feature/268-docker-run-fail
Browse files Browse the repository at this point in the history
Fix #268 fix proper shell, set db user/pass variables as optional
  • Loading branch information
korbelm authored Jun 17, 2024
2 parents 95b7bac + 10961dd commit fd5a06f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/dockerfile/runtime/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -euo pipefail

liquibase --headless=true --log-level=INFO --changeLogFile=$LB_HOME/db/changelog/db.changelog-master.xml \
--username=$MOBILE_UTILITY_SERVER_DATASOURCE_USERNAME \
--password=$MOBILE_UTILITY_SERVER_DATASOURCE_PASSWORD \
--url=$MOBILE_UTILITY_SERVER_DATASOURCE_URL \
liquibase --headless=true --log-level=INFO --changeLogFile="${LB_HOME}/db/changelog/db.changelog-master.xml" \
--username="${MOBILE_UTILITY_SERVER_DATASOURCE_USERNAME:-}" \
--password="${MOBILE_UTILITY_SERVER_DATASOURCE_PASSWORD:-}" \
--url="${MOBILE_UTILITY_SERVER_DATASOURCE_URL}" \
update

java -Dserver.port=8000 -jar /mobile-utility-server.war

0 comments on commit fd5a06f

Please sign in to comment.