Skip to content

CAS 6 overlay on Redhat Universal Base Image 7

Notifications You must be signed in to change notification settings

OULibDeprecated/cas6-rh-ubi7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

399 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Build For CAS 6 With Overlay

The is the build environment for our CAS 6 Docker container. It includes a custom overlay based on the Apero CAS overlay template.

Quickstart

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.

Configuration

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 registry
  • SPRING_APPLICATION_JSON- JSON-formatted string containing CAS Properties

Local Build Instructions

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

Automated Container Registry Build

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 Account
  • RH_REGISTRY_TOKEN - a Red Hat Registry access token

About

CAS 6 overlay on Redhat Universal Base Image 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 14

Languages