oc login https://api.starter-us-east-1.openshift.com --token=xxxxxxx | |
oc new-project villains | |
oc new-app lordofthejars/crimes:1.0 --name crimes | |
oc expose svc crimes --name=crimeswelcome | |
oc import-image crimes:1.1 --from=lordofthejars/crimes:1.1 | |
oc patch dc/crimes -p '{"spec": { "triggers":[ {"type": "ConfigChange", "type": "ImageChange" , "imageChangeParams": {"automatic": true, "containerNames":["crimes"],"from": {"name":"crimes:1.1"}}}]}}' | |
oc rollout latest dc/crimes | |
oc describe dc crimes | |
oc rollback crimes-1 | |
oc import-image crimes:1.2 --from=lordofthejars/crimes:1.2 | |
oc patch dc/crimes -p '{"spec": { "triggers":[ {"type": "ConfigChange", "type": "ImageChange" , "imageChangeParams": {"automatic": true, "containerNames":["crimes"],"from": {"name":"crimes:1.2"}}}]}}' | |
oc rollout latest dc/crimes | |
oc delete all --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment