1 # Using Docker Containers With TripleO
3 ## Configuring TripleO with to use a container based compute node.
6 - Adding a base OS image to glance
7 - Deploy an overcloud configured to use the docker compute heat templates
9 ## Getting base OS image working.
11 Download the fedora atomic image into glance:
14 wget https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Atomic-22-20150521.x86_64.qcow2
15 glance image-create --name atomic-image --file Fedora-Cloud-Atomic-22-20150521.x86_64.qcow2 --disk-format qcow2 --container-format bare
18 ## Configuring TripleO
20 You can use the tripleo.sh script up until the point of running the Overcloud.
21 https://github.com/openstack/tripleo-common/blob/master/scripts/tripleo.sh
23 You will want to set up the runtime puppet script delivery system described here:
24 http://hardysteven.blogspot.ca/2016/08/tripleo-deploy-artifacts-and-puppet.html
28 $ openstack overcloud deploy --templates=tripleo-heat-templates -e tripleo-heat-templates/environments/docker.yaml -e tripleo-heat-templates/environments/docker-network.yaml --libvirt-type=qemu
31 Using Network Isolation in the Overcloud:
33 $ openstack overcloud deploy --templates=tripleo-heat-templates -e tripleo-heat-templates/environments/docker.yaml -e tripleo-heat-templates/environments/docker-network-isolation.yaml --libvirt-type=qemu
36 Source the overcloudrc and then you can use the overcloud.
40 You can ssh into the controller/compute nodes by using the heat key, eg:
43 ssh heat-admin@<compute_node_ip>
46 You can check to see what docker containers are running:
51 To enter a container that doesn't seem to be working right:
53 sudo docker exec -ti <container name> /bin/bash
56 Then you can check logs etc.
58 You can also just do a 'docker logs' on a given container.