Created
May 23, 2017 12:00
-
-
Save lordofthejars/9fb5f08e47775a185a9b1f80f4af7aff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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