Skip to content

Instantly share code, notes, and snippets.

@flaper87
Created July 21, 2016 08:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save flaper87/17c5fe1eff25c6a1a94a240589e7680c to your computer and use it in GitHub Desktop.
# put this in /home/stack/tripleo-common/contrib/
uploads:
- imagename: tripleoupstream/heat-docker-agents:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-nova-compute:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-nova-libvirt:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-keystone:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-neutron-openvswitch-agent:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-openvswitch-vswitchd:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
- imagename: tripleoupstream/centos-binary-openvswitch-db-server:mitaka
uploader: docker
pull_source: docker.io
push_destination: localhost:8787
# Upload images to local registry
from tripleo_common.image.image_uploader import ImageUploadManager
mgr = ImageUploadManager(['/home/stack/tripleo-common/contrib/overcloud_containers.yaml'])
mgr.upload()
@steveb
Copy link

steveb commented Nov 6, 2016

Here is a single line shell replacement for upload_shit.py

python -c "from tripleo_common.image.image_uploader import ImageUploadManager ; ImageUploadManager(['/home/stack/tripleo-common/contrib/overcloud_containers.yaml']).upload()"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment