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.
- 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
deploy/operator.yaml
to point to your test image at quay.io. - Install all the descriptors for the operator to your OpenShift cluster:
./scripts/install.sh
- Expose the new Nexus Repo outside the cluster:
kubectl expose deployment --type=NodePort example-nexusrepo-sonatype-nexus
- 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.
- Remove exposed service in the console.
- Uninstall all the descriptors for the operator:
./scripts/uninstall.sh
.