Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CGDS and force keycloak db to mysql 5 #5036

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions end-to-end-test/local/docker_compose/keycloak.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
version: '3'
version: "3"

services:
cbioportal:
volumes:
- $TEST_HOME/docker_compose/keycloak/localdb.crt:/cbioportal-webapp/local.crt:ro
- $TEST_HOME/docker_compose/keycloak/localdb.key:/cbioportal-webapp/local.key
- $E2E_WORKSPACE/keycloak/idp-metadata.xml:/cbioportal-webapp/client-tailored-saml-idp-metadata.xml:ro
command: >
/bin/sh -c "java -Xms2g -Xmx4g -cp '/cbioportal-webapp:/cbioportal-webapp/lib/*' org.cbioportal.PortalApplication --spring.config.location=cbioportal-webapp/application.properties --dat.method=none --multithread.core_pool_size=1
command: >
/bin/sh -c "java -Xms2g -Xmx4g -cp '/cbioportal-webapp:/cbioportal-webapp/lib/*' org.cbioportal.PortalApplication --spring.config.location=cbioportal-webapp/application.properties --dat.method=none --multithread.core_pool_size=1
--authenticate=saml --spring.security.saml2.relyingparty.registration.cbio-idp.assertingparty.metadata-uri=classpath:/client-tailored-saml-idp-metadata.xml --session.service.url=http://cbioportal-session:5000/api/sessions/my_portal/
--spring.security.saml2.relyingparty.registration.cbio-idp.entity-id=cbioportal --spring.security.saml2.relyingparty.registration.cbio-idp.signing.credentials[0].certificate-location=classpath:/local.crt
--spring.security.saml2.relyingparty.registration.cbio-idp.signing.credentials[0].private-key-location=classpath:/local.key"
keycloak:
networks:
- cbio-net
- cbio-net
container_name: keycloak
image: quay.io/keycloak/keycloak:11.0.3
restart: unless-stopped
depends_on:
- kcdb
- kcdb
ports:
- "8081:8080"
- "8081:8080"
environment:
- DB_VENDOR=mysql
- DB_ADDR=kcdb
- DB_USER=keycloak
- DB_PORT=3306
- DB_PASSWORD=password
- DB_DATABASE=keycloak
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- JDBC_PARAMS=${KEYCLOAK_JDBC_PARAMS:-useSSL=false&serverTimezone=UTC}
- DB_VENDOR=mysql
- DB_ADDR=kcdb
- DB_USER=keycloak
- DB_PORT=3306
- DB_PASSWORD=password
- DB_DATABASE=keycloak
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- JDBC_PARAMS=${KEYCLOAK_JDBC_PARAMS:-useSSL=false&serverTimezone=UTC}

kcdb:
networks:
- cbio-net
image: ${DOCKER_IMAGE_MYSQL}
- cbio-net
image: mysql:5.7
container_name: kcdb
restart: unless-stopped
volumes:
- $E2E_WORKSPACE/kc_db_data:/var/lib/mysql
- $E2E_WORKSPACE/kc_db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_USER=keycloak
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=keycloak
command: --ssl=0 --lower_case_table_names=1
networks:
cbio-net:
cbio-net:
2 changes: 1 addition & 1 deletion end-to-end-test/local/runtime-config/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SPEC_FILE_PATTERN=./local/specs/**/*.spec.js
echo export CBIO_DB_DATA_DIR=$E2E_WORKSPACE/cbio_db_data
echo export KC_DB_DATA_DIR=$E2E_WORKSPACE/kc_db_data

echo export DB_CGDS_URL=https://raw.githubusercontent.com/cBioPortal/cbioportal/v5.3.6/db-scripts/src/main/resources/cgds.sql
echo export DB_CGDS_URL=https://raw.githubusercontent.com/cBioPortal/cbioportal/refs/tags/v6.0.17/src/main/resources/db-scripts/cgds.sql
echo export DB_SEED_URL=https://raw.githubusercontent.com/cBioPortal/datahub/master/seedDB/seedDB_hg19_archive/seed-cbioportal_hg19_v2.12.14.sql.gz

# -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Expand Down
Loading