This repo hosts the test-runner scripts that are used throughout cbioportal applications. The tests themselves vary from repo to repo, and are contained within the source code (e.g. cbioportal-frontend hosts specs for the frontend).
Before running any of the scripts, make sure to export the required environment variables shown below. If you need access to default values, get in touch with Zain.
set -o allexport
export DOCKER_USERNAME=<docker-username>
export DOCKER_PASSWORD=<docker-password>
export DOCKER_IMAGE_CBIOPORTAL=<docker-compose-image-tag>
export DOCKER_TAG=<build-tag>
export DB_MYSQL_USERNAME=<mysql-username>
export DB_MYSQL_PASSWORD=<mysql-password>
export DB_MYSQL_URL=<mysql-url>
export DB_CLICKHOUSE_USERNAME=<clickhouse-username>
export DB_CLICKHOUSE_PASSWORD=<clickhouse-password>
export DB_CLICKHOUSE_URL=<clickhouse-url>
set +o allexport
All scripts are standalone and can be run independently. They can also be configured by setting the appropriate environment variables and flags.
Build a docker image using the source code provided.
- --src=/path/to/dockerfile (REQUIRED)
- --push=false (If true, push to cbioportal/cbioportal-dev on dockerhub)
- --skip_web=false (If true, skip building the web-shenandoah image)
- --skip_web_and_data=false (If true, skip building the web-and-data image)
# To also push image to DockerHub, set --push=true. Default is false.
sh ./scripts/docker-compose.sh --src=/path/to/dockerfile --push=false
Start a cbioportal instance at localhost:8080. Set the appropriate environment variables to configure the database and docker image to use.
sh ./scripts/docker-compose.sh