Update Docs

This commit is contained in:
Pete Birley 2017-01-13 18:02:01 +00:00
parent 71b8961b53
commit 050f92a889
1 changed files with 11 additions and 5 deletions

View File

@ -6,12 +6,18 @@ Yaodu/glance is a set of Dockerfiles that builds lightweight deployment agnostic
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
[![](https://images.microbadger.com/badges/version/yaodu/glance:latest.svg)](https://microbadger.com/images/yaodu/glance:latest "yaodu/glance:latest") [![](https://images.microbadger.com/badges/image/yaodu/glance:latest.svg)](https://microbadger.com/images/yaodu/glance:latest "yaodu/glance:latest")
[![](https://images.microbadger.com/badges/version/yaodu/glance:ubuntu.svg)](https://microbadger.com/images/yaodu/glance:ubuntu "yaodu/glance:ubuntu") [![](https://images.microbadger.com/badges/image/yaodu/glance:ubuntu.svg)](https://microbadger.com/images/yaodu/glance:ubuntu "yaodu/glance:ubuntu")
[![](https://images.microbadger.com/badges/version/yaodu/glance:centos.svg)](https://microbadger.com/images/yaodu/glance:centos "yaodu/glance:centos") [![](https://images.microbadger.com/badges/image/yaodu/glance:centos.svg)](https://microbadger.com/images/yaodu/glance:centos "yaodu/glance:centos")
## Building locally
It's really easy to build images locally for the distro of your choice. To clone the repo and build run the following:
It's really easy to build images locally for the distro of your choice. To build an image you only need to run:
``` bash
$ git clone https://github.com/yaodu/docker-glance.git
$ cd ./docker-glance
$ docker build dockerfiles \
$ docker build https://github.com/yaodu/docker-glance.git \
--file dockerfiles/Dockerfile-debian \
--tag yaodu/glance:latest
```
@ -27,7 +33,7 @@ For more advanced building you can use docker build arguments to define:
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](https://review.openstack.org/#/c/368405/12) you could run:
``` bash
$ docker build dockerfiles \
$ 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 \