Last active
August 9, 2018 14:08
-
-
Save grafuls/2b12074879d407448dba0b255e4f829b to your computer and use it in GitHub Desktop.
BZ1608842-remedy.sh
This file contains hidden or 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
#!/usr/bin/env bash | |
TOKEN=$(oc whoami -t) | |
podman login docker-registry.default.svc:5000 -u test_admin -p $TOKEN | |
git clone https://github.com/ansibleplaybookbundle/import-vm-apb.git && cd import-vm-apb | |
docker build -t docker-registry.default.svc:5000/openshift/import-vm-apb:latest . | |
docker save docker-registry.default.svc:5000/openshift/import-vm-apb:latest -o import-vm-apb.tar | |
podman import import-vm-apb.tar docker-registry.default.svc:5000/openshift/import-vm-apb:latest | |
podman push docker-registry.default.svc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment