Docker build for Loris
Image with Loris dependencies installed.
Image with Loris and Loris-MRI dependencies installed.
Image with Loris installed, does not include Loris-MRI, but can be built with Loris and Loris-MRI dependencies installed.
To build with only Loris dependencies, use environment variable LORIS_BASE=loris-base. To build with Loris and Loris-MRI dependencies, use LORIS_BASE=loris-mri-base.
Switching using this env var reduces code duplication, while allowing for faster builds because loris-mri dependencies don't need to be reinstalled when changes are made to loris.
Image with Loris and Loris-MRI installed.
Image to build MINC Toolkit. Not used currently, but available for MINC repository downtime.
Repository uses Task to build the images.
After installing Task, run task <image_name> to build.
To tag the loris-mri image with an AWS ECR repository to enable pushing the image, set the following variables in secrets/aws-ecr.env
- AWS_ECR_TAG=true
- AWS_ECR_REGION
- AWS_ACCOUNT_ID
- AWS_ECR_REPO_NAME
- AWS_ECR_IMAGE_TAG
To configure loris-docker with a CouchDB backend, use the following environment variables. These will be substituted into the config.xml.
- COUCH_DATABASE
- COUCH_HOSTNAME
- COUCH_PORT
- COUCH_USERNAME
- COUCH_PASSWORD
The file docker-compose.couch.yml shows how the CouchDB image can be integrated into a docker compose set-up. It can be used directly using docker compose yaml merging functionality, e.g.
docker compose -f docker-compose.yml -f docker-compose.couch.yml up -d