The is the build environment for our CAS 6 Docker container. It includes a custom overlay based on the Apero CAS overlay template.
First, create a github access token with at least the ['public_repo', 'read:packages'] scopes. You'll need this to pull the container.
Then, to run the latest build from the GitHub package registry, do:
docker login -u USERNAME -p TOKEN docker.pkg.github.com
docker pull docker.pkg.github.com/oulibraries/cas6-rh-ubi7/cas6-rh-ubi7:latest
docker run --rm --name testcas -p 127.0.0.1:8080:8080 cas6-rh-ubi7
Once that's running, you should be able to access the CAS app in the container.
You can use environment variables to configure the CAS container on startup:
PRIVATE_GIT_SERVICE_REGISTRY- URL for a git repo containing a file-based service registrySPRING_APPLICATION_JSON- JSON-formatted string containing CAS Properties
To download the ubi7-minimal base image, you'll need to authenticate with the Red Hat package registry using a Red Hat Developer Account or a Registry Service Account, which can be created from a developer account.
docker login -u USERNAME https://registry.redhat.io
To build the container, run:
docker build . --file=Dockerfile --tag local-test-cas
A GitHub action to rebuild this container when the master branch of this repo is updated is configued at .github/workflows/dockerpush.yml. This action depends on GitHub Secrets:
RH_REGISTRY_USER- a Red Hat Registry Service AccountRH_REGISTRY_TOKEN- a Red Hat Registry access token