openstack_dockers/cinder_controller
Egon Rijpkema 17ee2aa487 Added ceph config for cinder controller. 2018-09-17 13:25:44 +02:00
..
.gitignore Trying to adhere to python naming convention. 2018-04-23 15:55:16 +02:00
Dockerfile Added ceph config for cinder controller. 2018-09-17 13:25:44 +02:00
README.md Trying to adhere to python naming convention. 2018-04-23 15:55:16 +02:00
admin-openrc.sh Trying to adhere to python naming convention. 2018-04-23 15:55:16 +02:00
bootstrap.sh Trying to adhere to python naming convention. 2018-04-23 15:55:16 +02:00
run.sh Add apache2 log to container log. 2018-09-17 11:45:36 +02:00
write_conf.sh Added ceph config for cinder controller. 2018-09-17 13:25:44 +02:00

README.md

How to build

docker build . -t hpc/openstack-cinder-controller

Bootstrap

 docker run --rm
    -e "MY_IP={{ ansible_default_ipv4.address }}"
    -e "CINDER_HOST={{ hostvars[groups['cinder-controller'][0]]['ansible_default_ipv4']['address'] }}"
    -e "CINDER_PASSWORD={{ secrets['CINDER_PASSWORD'] }}"
    -e "CINDER_USER=cinder"
    -e "KEYSTONE_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}"
    -e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}"
    -e "MYSQL_ROOT_PASSWORD={{ secrets['MYSQL_ROOT_PASSWORD'] }}"
    -e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}"
    -e "RABBIT_HOST={{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}"
    -e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
    -e "RABBIT_USER=openstack"
 hpc/openstack-cinder /etc/bootstrap.sh

Run an image

/usr/bin/docker run \
    -e "MY_IP={{ ansible_default_ipv4.address }}"
    -e "CINDER_HOST={{ hostvars[groups['cinder-controller'][0]]['ansible_default_ipv4']['address'] }}"
    -e "CINDER_PASSWORD={{ secrets['CINDER_PASSWORD'] }}"
    -e "CINDER_USER=cinder"
    -e "KEYSTONE_HOST={{ hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address'] }}"
    -e "MYSQL_HOST={{ hostvars[groups['databases'][0]]['ansible_default_ipv4']['address'] }}"
    -e "MYSQL_ROOT_PASSWORD={{ secrets['MYSQL_ROOT_PASSWORD'] }}"
    -e "OS_PASSWORD={{ secrets['OS_PASSWORD'] }}"
    -e "RABBIT_HOST={{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}"
    -e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
    -e "RABBIT_USER=openstack"
    -p 8776:8776 \
  hpc/openstack-cinder-controller