RedHatWorkshops / dil-cloudnative

0 stars 0 forks source link

Nexus Component #21

Open ramshaarshad opened 6 years ago

ramshaarshad commented 6 years ago

Needs to be tested

ramshaarshad commented 6 years ago

On breaking apart nexus from the cicd demo:

I went to the general cicd yaml template located at https://github.com/OpenShiftDemos/openshift-cd-demo/blob/ocp-3.9/cicd-template.yaml

I located the raw embedded nexus templates(https://raw.githubusercontent.com/OpenShiftDemos/nexus/master/nexus3-persistent-template.yaml) and saw that there was a nexus functions template(https://raw.githubusercontent.com/OpenShiftDemos/nexus/master/scripts/nexus-functions) that the nexus persistent template was dependent on as it contained the artifact repos used to populate nexus

Then from there I put both the nexus persistent template and the nexus functions template into our dil-cloudnative repo under the cicd-component directory and made the nexus3-persistent template point to the dil-cloudnative nexus directory

To run nexus as its own individual component you can run: oc new-app -f https://raw.githubusercontent.com/RedHatWorkshops/dil-cloudnative/master/cicd-components/nexus/nexus3-persistent.yaml --param=NEXUS_VERSION=3.8.0 --param=MAX_MEMORY=2Gi