COmanage Registry Docker

What it is

Docker version of COmanage Registry.

COmanage Registry is a web application that requires a relational database and an authentication mechanism such as Shibboleth, SimpleSAMLphp, mod_auth_openidc, or just simple Basic Authentication. Since COmanage Registry itself is agnostic about the database and authentication mechanism used this repository includes multiple Dockerfiles to build images that use various combinations of tools.

How To

  • Install Docker. These instructions require version 17.03.1 or higher.

  • Install Docker Compose. These instructions require version 1.13.0 or higher.

  • Clone this repository:

git clone https://github.com/Internet2/comanage-registry-docker.git
cd comanage-registry-docker
  • Define COMANAGE_REGISTRY_VERSION. Currently we recommend
export COMANAGE_REGISTRY_VERSION=hotfix-2.0.x
  • Build a local image for COmanage Registry:
pushd comanage-registry-basic-auth
sed -e s/%%COMANAGE_REGISTRY_VERSION%%/${COMANAGE_REGISTRY_VERSION}/g Dockerfile.template  > Dockerfile
docker build -t comanage-registry:${COMANAGE_REGISTRY_VERSION}-basic-auth .
popd
  • Build a local image of PostgreSQL for COmanage Registry:
pushd comanage-registry-postgres
docker build -t comanage-registry-postgres .
popd
  • Create a docker-compose.yml file:
version: '3.1'

services:

    comanage-registry-database:
        image: comanage-registry-postgres

    comanage-registry:
        image: comanage-registry:hotfix-2.0.x-basic-auth
        ports:
            - "80:80"
            - "443:443"
  • Start the services:
docker-compose up -d
  • Browse to port 443 on the host, for example https://localhost/. You will have to click through the warning from your browser about the self-signed certificate used for HTTPS.

  • Click Login and when prompted enter registry.admin as the username and password for the password.

See Advanced Configuration for details on setting a non-default administrator username and password.

  • Visit the COmanage wiki to learn how to create your first collaborative organization (CO) and begin using the platform.

  • To stop the services:

docker-compose stop
  • To remove the containers and networks:
docker-compose down

Important Notes

The instructions above are not suitable for a production deployment for two reasons:

  1. The deployed services use default and easily guessed passwords.
  2. No data is persisted. When the containers are destroyed so is your data.

Next Steps

To evolve your COmanage Registry deployment examine the documentation in the docs directory or follow these direct links: