Ricardo Jun
2018-11-29 ecaaf45fbbf2184576c95a7432602bb46dc70e98
extras/backup/images.sh
@@ -1,10 +1,15 @@
rsync -aPv docker-clean root@services:/etc/sysconfig/docker
ssh root@services mkdir /tmp/dc39
rsync -aPv * root@services:/tmp/dc39
ssh root@classroom rht-config-nat
ssh root@services systemctl restart docker
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.0 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.0 registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.0 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.0" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.1 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.1 registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.1 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.1" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.2 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.2  registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.2"
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.2"
ssh root@services "cd /tmp/dc39/business-central && docker build . -t registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.2"
#ssh root@services "docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.2  registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-openshift:1.2"
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.0 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.0 registry.lab.example.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.0 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.0" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.1 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.1 registry.lab.example.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.1 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.1" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.2 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.2 registry.lab.example.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.2" 
@@ -13,7 +18,7 @@
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-controller-openshift:1.2 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-controller-openshift:1.2 registry.lab.example.com/rhpam-7/rhpam70-controller-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-controller-openshift:1.2" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.0 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.0 registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.0 && docker push registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.0" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.1 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.1 registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.1 && docker push registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.1" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.2 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.2 registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.2"
ssh root@services "cd /tmp/dc39/kie-server && docker build . -t registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-kieserver-openshift:1.2"
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.0 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.0 registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.0 && docker push registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.0 && docker push registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.1" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.1 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.1 registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.1 && docker push registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.1" 
ssh root@services "docker pull registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.2 && docker tag registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.2 registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.2 && docker push registry.lab.example.com/rhpam-7/rhpam70-smartrouter-openshift:1.2"