Merge pull request #9 from radez/glance

updating build and start scripts for glance
This commit is contained in:
Lars Kellogg-Stedman 2014-09-30 15:54:16 -04:00
commit d79eaf8441
11 changed files with 50 additions and 21 deletions

10
docker/glance/build Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
for image in glance-base glance-api glance-registry; do
(
pushd $image
./build
popd
)
done

View File

@ -1,10 +0,0 @@
#!/bin/sh
for image in glance-base glance-api glance-registry; do
(
cd $image
docker build -t docker.usersys.redhat.com/larsks/${image}:latest .
docker push docker.usersys.redhat.com/larsks/${image}:latest
)
done

View File

@ -0,0 +1,10 @@
{
"id": "glanceapimaster",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 9292,
"containerPort": 9292,
"selector": {
"name": "glance-api-master"
}
}

View File

@ -1,6 +1,5 @@
FROM fedora-rdo-glance-base FROM kollaglue/fedora-rdo-glance-base
MAINTAINER Lars Kellogg-Stedman <lars@redhat.com> MAINTAINER Dan Radez <dradez@redhat.com>
ADD ./start.sh /start.sh ADD ./start.sh /start.sh
CMD ["/start.sh"] CMD ["/start.sh"]

0
docker/glance/glance-api/start.sh Normal file → Executable file
View File

View File

@ -1,5 +1,5 @@
FROM fedora-rdo-base FROM kollaglue/fedora-rdo-base
MAINTAINER Lars Kellogg-Stedman <lars@redhat.com> MAINTAINER Dan Radez <dradez@redhat.com>
RUN yum -y install \ RUN yum -y install \
openstack-utils \ openstack-utils \

View File

@ -0,0 +1,10 @@
{
"id": "glanceregistrymaster",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 9191,
"containerPort": 9191,
"selector": {
"name": "glance-registry-master"
}
}

View File

@ -1,5 +1,5 @@
FROM fedora-rdo-glance-base FROM kollaglue/fedora-rdo-glance-base
MAINTAINER Lars Kellogg-Stedman <lars@redhat.com> MAINTAINER Dan Radez <dradez@redhat.com>
ADD ./start.sh /start.sh ADD ./start.sh /start.sh
CMD ["/start.sh"] CMD ["/start.sh"]

0
docker/glance/glance-registry/start.sh Normal file → Executable file
View File

View File

@ -7,9 +7,9 @@
"containers": [ "containers": [
{ {
"name": "glance-registry", "name": "glance-registry",
"image": "docker.usersys.redhat.com/larsks/glance-registry", "image": "kollaglue/fedora-rdo-glance-registry",
"ports": [ "ports": [
{"containerPort": 9292}, {"containerPort": 9191},
], ],
"env": [ "env": [
{ {
@ -28,7 +28,7 @@
}, },
{ {
"name": "glance-api", "name": "glance-api",
"image": "docker.usersys.redhat.com/larsks/glance-api", "image": "kollaglue/fedora-rdo-glance-api",
"ports": [ "ports": [
{"containerPort": 9292}, {"containerPort": 9292},
], ],
@ -51,6 +51,6 @@
} }
}, },
"labels": { "labels": {
"name": "keystone-master" "name": "glance-master"
} }
} }

10
docker/glance/push Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
for image in glance-base glance-api glance-registry; do
(
pushd $image
./push
popd
)
done