openstack_dockers/docker-glance
2018-04-23 15:07:18 +02:00
..
.gitignore 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
Dockerfile All changes in the merlin branches. 2018-04-23 15:07:18 +02:00
README.md 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 All changes in the merlin branches. 2018-04-23 15:07:18 +02:00

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