If docker image already available in nexus repository then it can be used in openshift ECPaaS environment by creating image stream. Below are the steps to create image stream in openshift.
a. login to openshift with CLI ( Download openshift client(oc) from Download link and install)
oc login ecpass-dev.cdc.gov
b. Switch to your openshift project
oc project your_project_name
c. Create secret in openshift for docker registry
oc create secret docker-registry imagehub --docker-username=nexus_username --docker-password=nuxus_password --docker-server=imagehub.cdc.gov:5989 --docker-email=emailid@cdc.gov
d. Link the above secret to default, deployer and builder service accounts
oc secret link default imagehub --for=pull oc secret link deployer imagehub --for=pull oc secret link builder imagehub --for=pull
e. Import image by running command:
oc import-image helloworld --from=imagehub.cdc.gov:8123 --confirm
Add Comment