Skip to content

Commit

Permalink
Make sure that docker entrypoint works for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Aug 22, 2023
1 parent f91d0fd commit cc879f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ jobs:
working-directory: ./cbioportal-docker-compose
run: |
cd ./data && ./init.sh && rm -rf ./studies/* && cd ../config && \
cat $PORTAL_SOURCE_DIR/portal/target/portal/WEB-INF/classes/portal.properties | \
sed 's|db.connection_string=.*|db.connection_string=jdbc:mysql://cbioportal-database:3306/cbioportal?useSSL=false|g' \
cat $PORTAL_SOURCE_DIR/portal/target/classes/portal.properties | \
sed 's|db.host=.*||' | \
sed 's|db.portal_db_name=.*||' | \
sed 's|db.use_ssl=.*||' | \
sed 's|db.connection_string=.*|db.connection_string=jdbc:mysql://cbioportal-database:3306/cbioportal?useSSL=false&allowPublicKeyRetrieval=true|' \
> portal.properties
- name: 'Start cbioportal-docker-compose'
working-directory: ./cbioportal-docker-compose
Expand Down
2 changes: 1 addition & 1 deletion docker/web-and-data/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ _main() {
# available, otherwise use portal.properties
if [ -n "$SHOW_DEBUG_INFO" ] && [ "$SHOW_DEBUG_INFO" != "false" ]; then
echo "Using database config:"
#parse_db_params_from_config_and_command_line $@
parse_db_params_from_config_and_command_line $@
fi

check_db_connection $@
Expand Down
2 changes: 2 additions & 0 deletions test/integration/docker-compose-localbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ services:
# and running
- $PORTAL_SOURCE_DIR:/cbioportal/
- $PORTAL_SOURCE_DIR/portal/target/cbioportal.war:/app.war
# TODO: remove line below after upgrade of cbioportal-docker-compose to > v5.3.20
- $PORTAL_SOURCE_DIR/docker/web-and-data/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh

0 comments on commit cc879f2

Please sign in to comment.