openstack_dockers/glance
Egon Rijpkema 984c48d2e6 Updated auth_url to https in config files, too 2018-09-24 09:55:01 +02:00
..
.gitignore Docker in name is no longer needed 2018-04-23 15:35:37 +02:00
Dockerfile Docker in name is no longer needed 2018-04-23 15:35:37 +02:00
README.md Docker in name is no longer needed 2018-04-23 15:35:37 +02:00
admin-openrc.sh OS_AUTH_URL is https now 2018-09-21 16:24:23 +02:00
bootstrap.sh OS_AUTH_URL is https now 2018-09-21 16:24:23 +02:00
run.sh Docker in name is no longer needed 2018-04-23 15:35:37 +02:00
write_conf.sh Updated auth_url to https in config files, too 2018-09-24 09:55:01 +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