How to create image stream ?
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:5989 --confirm
f. After importing image it can be deployed with openshift UI.
Related content
Collaboration Spaces for Public Health Surveillance
This site is set up for CDC to collaborate with public health to improve public health surveillance and disease tracking. All information and content is draft and official content will be published through cdc.gov and appropriate channels for records management.
For more info, visit http://www.cdc.gov/surveillance
Disclaimer & Notice | Contributing | Code of Conduct | License