Running Docker
Overview
OpenCGA produces four different Docker images for runnning OpenCGA in two main different modes: cluster and local. All of them run Java 8 and can be found in OpenCB Docker Hub, the docker images are:
opencga-base: base image for building the other images, this image contains the OpenCGA basic installation folder.
opencga-init: image running REST web services
opencga-r: image running master service
opencga-demo: all-in-one image with all OpenCGA components running
You can use OpenCGA Docker image to run a complete OpenCGA platform locally. You can use the other images to deploy a whole cluster solution in a cloud environment using Kubernetes. Docker Images are deployed in Docker Hub OpenCB organisation.
Implementation
OpenCGA publishes a number of images into DockerHub for user ease. These images are based on Alpine JRE images to keep sizes as small as possible, contains OpenCGA binaries, for complete contents of image, please have a look at Dockerfile in github. A typical image name will follow the following structure :
opencga:{OPENCGA_VERSION_NUMBER}-{VARIANT_STORAGE_FLAVOUR}
OPENCGA_VERSION_NUMBER will be like 1.4.0, 1.4.2, 2.0 etc
VARIANT_STORAGE_FLAVOUR can be mongoDB 4.0, hdinshigh, emr etc
e.g. opencga:1.4.0-mongo4.0
OpenCGA has published a docker image for quick testing and playing without going through hassle to learn, wait and install each and every OpenCGA components. The docker image is available at the public docker registry under the repository opencb/opencga-demo.
The OpenCGA demo docker image contains the following components:
OpenCGA binaries
MongoDB 4.0
Solr 6.6 (default)
init.sh, a bash script to :
Install OpenCGA catalog
Populate data (optional)
To download OpenCGA demo image, use the command docker pull with the OpenCB enterprise, opencga-demo repository and tag.
Run OpenCGA Cluster
Kubernetes, Ansible, OpenStack, ....
Run OpenCGA Local
This mode is not intended for production but for a user demo.
Build Docker Images
Last updated