Merge pull request #7 from sdake/master

Provide script to build docker images
This commit is contained in:
Lars Kellogg-Stedman 2014-09-21 16:37:26 -04:00
commit 569bf5dd35
21 changed files with 76 additions and 13 deletions
README.md
docker
build
cinder
fedora-rdo-base
glance
glance-api
glance-base
glance-registry
heat
heat-api
heat-base
heat-engine
keystone
mariadb
rabbitmq
rhel-osp-base
swift
swift-account
swift-base
swift-container
swift-object
swift-proxy-server

@ -2,21 +2,48 @@ superhappyfunshow
=================
A proof of concept demonstrating deployment of OpenStack Services within Docker
containers using Kubernetes on Project Atomic.
containers using Kubernetes.
Getting Started
=================
===============
Kubernetes deployment on bare metal is a complex topic which is beyond the
scope of this project at this time. The developers still require a test
environment. As a result, one of the developers has created a Heat based
deployment tool that can be found here:
deployment tool that can be
found [here](https://github.com/larsks/heat-kubernetes).
https://github.com/larsks/heat-kubernetes
Build Docker Images
-------------------
Within the docker directory is a tool called build. This tool will build
all of the docker images that have been implemented. Each OpenStack service is
implemented as a separate container that can later be registered with
Kubernetes.
** [sdake@bigiron docker]$ sudo ./build **
A 20-30 minute build process will begin where containers will be built for
each OpenStack service. Once finished the docker images can be examined with
the docker CLI.
** [sdake@bigiron docker]$ sudo docker images **
A list of the built docker images will be shown.
Note at this time the images do not yet work correctly or operate on their
defined environment variables. They are essentially placeholders.
Use Kubernetes to Deploy OpenStack
----------------------------------
This has not been implemented.
Directories
=================
===========
* docker - contains artifacts for use with docker build to build appropriate images
* docker - contains artifacts for use with docker build to build appropriate images

12
docker/build Executable file

@ -0,0 +1,12 @@
#!/bin/bash
# If the directories were numbered, a simple find could be used to build ;-)
CONTAINERS=(fedora-rdo-base cinder glance/glance-base glance/glance-api glance/glance-registry heat/heat-base heat/heat-api heat/heat-engine keystone mariadb rabbitmq swift/swift-base swift/swift-account swift/swift-container swift/swift-object swift/swift-proxy-server)
for IMAGE in ${CONTAINERS[@]}; do
echo "Building $IMAGE"
pushd .
cd ${IMAGE}
./build
popd
done

2
docker/cinder/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-cinder .

2
docker/fedora-rdo-base/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-base .

@ -1,4 +1,4 @@
FROM glance-base
FROM fedora-rdo-glance-base
MAINTAINER Lars Kellogg-Stedman <lars@redhat.com>
ADD ./start.sh /start.sh

2
docker/glance/glance-api/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-glance-api .

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-glance-base .

@ -1,4 +1,4 @@
FROM fedora-rdo-base
FROM fedora-rdo-glance-base
MAINTAINER Lars Kellogg-Stedman <lars@redhat.com>
ADD ./start.sh /start.sh

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-glance-registry .

2
docker/heat/heat-api/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-heat-api .

2
docker/heat/heat-base/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-heat-base .

2
docker/heat/heat-engine/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-heat-engine .

2
docker/keystone/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-keystone .

2
docker/mariadb/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-mariadb .

2
docker/rabbitmq/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag fedora-rdo-rabbitmq .

2
docker/rhel-osp-base/build Executable file

@ -0,0 +1,2 @@
#!/bin/bash
docker build --tag rhel-osp-base .

@ -1,2 +1,2 @@
#!/bin/bash
sudo docker build --tag fedora-rdo-swift-account-server .
docker build --tag fedora-rdo-swift-account-server .

@ -1,2 +1,2 @@
#!/bin/bash
sudo docker build --tag swift-proxy-base .
docker build --tag fedora-rdo-swift-base .

@ -1,2 +1,2 @@
#!/bin/bash
sudo docker build --tag fedora-rdo-swift-container-server .
docker build --tag fedora-rdo-swift-container-server .

@ -1,2 +1,2 @@
#!/bin/bash
sudo docker build --tag fedora-rdo-swift-object-server .
docker build --tag fedora-rdo-swift-object-server .

@ -1,2 +1,2 @@
#!/bin/bash
sudo docker build --tag fedora-rdo-swift-proxy-server .
docker build --tag fedora-rdo-swift-proxy-server .