Red Hat certified OpenShift Operator for installing Sonatype Nexus Repository Manager 3 to an OpenShift cluster.
To develop and test locally, you'll use CodeReady Containers on your workstation and push your operator image to quay.io to make it available for installation.
- Install CodeReady Containers for a local Openshift 4 environment.
- Ensure you have a personal quay.io account.
- Generate a new version of the operator image using the templates under test:
./scripts/new_version.sh image <new-operator-version> <cert-app-image-version>
- Build and deploy the operator image to your personal quay.io repository:
docker build . -f build/Dockerfile --tag quay.io/<username>/nxrm-operator-certified:[operator-version]
docker login quay.io
docker push quay.io/<username>/nxrm-operator-certified:[operator-version]
- Make sure the new image on quay.io is public, so that the OpenShift cluster can pull it.
- Update the bundle files for the new image:
./scripts/new_version.sh bundle <new-operator-version> <operator-image-id> <certified-app-image-id>
- Install all the descriptors for the operator to your OpenShift cluster:
./scripts/install.sh
- Expose the new Nexus Repo outside the cluster:
- Create a Route in OpenShift UI to the new service, port 8081.
- Visit the new URL shown on the Route page in OpenShift UI.
- Remove the route in the console.
- Uninstall all the descriptors for the operator:
./scripts/uninstall.sh
.