openstack_dockers/docker-glance
Egon Rijpkema b6c6533824 First commit
(Contains all the master branches of the previous repositories)
2018-04-23 14:57:26 +02:00
..
.gitignore First commit 2018-04-23 14:57:26 +02:00
Dockerfile First commit 2018-04-23 14:57:26 +02:00
README.md First commit 2018-04-23 14:57:26 +02:00
admin-openrc.sh First commit 2018-04-23 14:57:26 +02:00
bootstrap.sh First commit 2018-04-23 14:57:26 +02:00
run.sh First commit 2018-04-23 14:57:26 +02:00
write_conf.sh First commit 2018-04-23 14:57:26 +02:00

README.md

How to build

docker build . -t hpc/openstack-glance

Bootstrap

 docker run --rm
 -e "RABBIT_HOST={{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}"
 -e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}"
 -e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}"
 -e "MYSQL_ROOT_PASSWORD=geheim"
 -e "KEYSTONE_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}"
 -e "GLANCE_HOST={{ hostvars[groups['glance'][0]]['ansible_default_ipv4']['address'] }}"
 -e "GLANCE_PASSWORD=geheim"
 hpc/openstack-glance /etc/bootstrap.sh

Run an image

/usr/bin/docker run --name %n \
  -e "RABBIT_HOST={{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}" \
  -e "MEMCACHED_HOST={{ hostvars[groups['memcached'][0]]['ansible_default_ipv4']['address'] }}" \
  -e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}" \
  -e "MYSQL_ROOT_PASSWORD=geheim" \
  -e "KEYSTONE_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}" \
  -e "GLANCE_HOST={{ hostvars[groups['glance'][0]]['ansible_default_ipv4']['address'] }}" \
  -e "GLANCE_PASSWORD=geheim" \
  -p 9292:9292 \
  hpc/openstack-glance