Skip to content

Commit

Permalink
Update to docker entrypoint and docker compose
Browse files Browse the repository at this point in the history
Update web and docker entry point
Update localbuild to use exec
  • Loading branch information
JREastonMarks committed Nov 7, 2023
1 parent 798f9c2 commit f0e48b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docker/web-and-data/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -eo pipefail
shopt -s nullglob

BAKED_IN_WAR_CONFIG_FILE=/cbioportal-webapp/WEB-INF/classes/portal.properties
CUSTOM_PROPERTIES_FILE=cbioportal/portal.properties
BAKED_IN_WAR_CONFIG_FILE=/cbioportal-webapp/WEB-INF/classes/application.properties
CUSTOM_PROPERTIES_FILE=cbioportal/application.properties

# check to see if this file is being run or sourced from another script
_is_sourced() {
Expand Down Expand Up @@ -100,9 +100,9 @@ migrate_db() {
POTENTIAL_DB_PARAMS=$@

if [[ -f $CUSTOM_PROPERTIES_FILE ]]; then
python3 /cbioportal/core/src/main/scripts/migrate_db.py -y -p $CUSTOM_PROPERTIES_FILE -s /cbioportal/db-scripts/src/main/resources/migration.sql
python3 /cbioportal/core/src/main/resources/scripts/migrate_db.py -y -p $CUSTOM_PROPERTIES_FILE -s /cbioportal/src/main/resources/db-scripts/migration.sql
else
python3 /cbioportal/core/src/main/scripts/migrate_db.py -y -p <(parse_db_params_from_config_and_command_line $POTENTIAL_DB_PARAMS) -s /cbioportal/db-scripts/src/main/resources/migration.sql
python3 /cbioportal/core/src/main/resources/scripts/migrate_db.py -y -p <(parse_db_params_from_config_and_command_line $POTENTIAL_DB_PARAMS) -s /cbioportal/src/main/resources/db-scripts/migration.sql
fi
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration/docker-compose-localbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ services:
# by volume mounting the local portal source folder into the container
# and running
- $PORTAL_SOURCE_DIR:/cbioportal/
- $PORTAL_SOURCE_DIR/target/cbioportal.jar:/cbioportal.jar
- $PORTAL_SOURCE_DIR/target/cbioportal-exec.jar:/cbioportal-exec.jar
- $PORTAL_SOURCE_DIR/docker/web-and-data/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh

0 comments on commit f0e48b4

Please sign in to comment.