RETIRED, Lightweight OCI compatible image for Glance
Go to file
Sam Yaple 430781b33f [WIP] Add ceph binaries
Ceph is the most used backend in OpenStack. Adding in the binaries for
Ceph conforms to our policies.

Change-Id: I743a249cb5b716d01fa931ba096d8c8efe3f3c8b
2017-03-29 20:17:42 +00:00
centos Switch to common scripts 2017-03-23 04:59:46 +00:00
debian [WIP] Add ceph binaries 2017-03-29 20:17:42 +00:00
ubuntu [WIP] Add ceph binaries 2017-03-29 20:17:42 +00:00
.gitreview Added .gitreview 2017-03-27 08:54:13 -05:00
LICENSE Initial commit 2017-01-09 06:57:08 +00:00
README.md Update Docs 2017-01-13 18:08:21 +00:00

README.md

OpenStack yaodu/glance

Docker Automated buil

Yaodu/glance is a set of Dockerfiles that builds lightweight deployment agnostic images for OpenStack Glance.

Images are built in the Docker Hub automatically on each push to the master branch to provide a continuously updated set of images based on a number of distributions. Additionally, this repo may be cloned and used to build images for OpenStack Glance either for development purposes or as part of a CI/CD workflow.

Image Layer Info

Building locally

It's really easy to build images locally for the distro of your choice. To build an image you only need to run:

$ docker build https://github.com/yaodu/docker-glance.git \
  --file dockerfiles/Dockerfile-debian \
  --tag yaodu/glance:latest

You can, of course, substitute debian with your distro of choice.

For more advanced building you can use docker build arguments to define:

  • The git repo containing the OpenStack project the container should contain, GIT_REPO
  • The git ref the container should use when building, GIT_REF
  • The git repo the container should use when building from a git ref, GIT_REF_REPO
  • The docker image name to use for the base requirements python wheels, DOCKER_REPO
  • The docker image tag to use for the base requirements python wheels, DOCKER_TAG
  • If present, rather than using a docker image containing OpenStack requirements a tarball will be used from the defined URL, WHEELS

This makes it really easy to integrate Yaodu images into your development or CI/CD workflow, for example, if you wanted to build an image from this PS you could run:

$ docker build https://github.com/yaodu/docker-glance.git \
  --file dockerfiles/Dockerfile-ubuntu \
  --tag mydockernamespace/glance-testing:368405-12 \
  --build-arg GIT_REPO=http://git.openstack.org/openstack/glance.git \
  --build-arg GIT_REF_REPO=http://git.openstack.org/openstack/glance.git \
  --build-arg GIT_REF=refs/changes/05/368405/12

Customizing

The images should contain all the required assets for running the service. But if you wish or need to customize the yaodu/glance image that's great! We hope to have built the images to make this as easy and flexible as possible. To do this we recommend that you perform any required customisation in a child image using a pattern similar to:

FROM yaodu/glance:latest
MAINTAINER you@example.com

RUN set -x \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
    your-awesome-binary-package \
    && rm -rf /var/lib/apt/lists/*