PASS supports multiple institutions. Each institution receives its own docker compose and environment file.
When starting, stopping, or otherwise administering docker containers, it is important to specify the docker compose file to work with, using the
-foption of thedocker-composecommand.
Note that
docker-composereads the.envfile automatically, regardless of the docker-compose file passed by-f. This is a gotcha if you specify variables in the build arguments of a service: don't do that.
A couple of different patterns are used to support multiple institutions when building images:
- the use of a
TENANTbuild argument- an image exists for each institution as specified by the
TENANT - e.g. the
idp,sp,ldapimages
- an image exists for each institution as specified by the
- including configuration files for supported institutions in the image
- a single image exists for all institutions, and the configuration for an institution is specified at runtime
index(viaPI_ES_CONFIG),schemaservice(viaMETADATA_SCHEMA_URI),policyservice(viaPOLICY_FILE)
Uses the default docker-compose.yml and .env files.
Launch using docker-compose up -d.
Uses the harvard.yml and .harvard_env files.
Launch using docker-compose -f harvard.yml up -d.