parent
d19a98d6d2
commit
715ba13af0
18
README.md
18
README.md
|
@ -1,9 +1,17 @@
|
|||
# OpenStack yaodu/cinder
|
||||
[![Docker Automated buil](https://img.shields.io/docker/automated/yaodu/cinder.svg)](https://hub.docker.com/r/yaodu/cinder/)
|
||||
|
||||
Yaodu/cinder is a set of Dockerfiles that builds lightweight deployment agnostic images for OpenStack Keystone.
|
||||
Yaodu/cinder is a set of Dockerfiles that builds lightweight deployment agnostic images for OpenStack Cinder.
|
||||
|
||||
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 Keystone either for development purposes or as part of a CI/CD workflow.
|
||||
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 Cinder either for development purposes or as part of a CI/CD workflow.
|
||||
|
||||
|
||||
### Image Layer Info
|
||||
[![](https://images.microbadger.com/badges/version/yaodu/cinder:latest.svg)](https://microbadger.com/images/yaodu/cinder:latest "yaodu/cinder:latest") [![](https://images.microbadger.com/badges/image/yaodu/cinder:latest.svg)](https://microbadger.com/images/yaodu/cinder:latest "yaodu/cinder:latest")
|
||||
|
||||
[![](https://images.microbadger.com/badges/version/yaodu/cinder:ubuntu.svg)](https://microbadger.com/images/yaodu/cinder:ubuntu "yaodu/cinder:ubuntu") [![](https://images.microbadger.com/badges/image/yaodu/cinder:ubuntu.svg)](https://microbadger.com/images/yaodu/cinder:ubuntu "yaodu/cinder:ubuntu")
|
||||
|
||||
[![](https://images.microbadger.com/badges/version/yaodu/cinder:centos.svg)](https://microbadger.com/images/yaodu/cinder:centos "yaodu/cinder:centos") [![](https://images.microbadger.com/badges/image/yaodu/cinder:centos.svg)](https://microbadger.com/images/yaodu/cinder:centos "yaodu/cinder:centos")
|
||||
|
||||
|
||||
## Building locally
|
||||
|
@ -25,14 +33,14 @@ For more advanced building you can use docker build arguments to define:
|
|||
* 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](https://review.openstack.org/#/c/418167/) you could run:
|
||||
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/416334/2) you could run:
|
||||
``` bash
|
||||
$ docker build dockerfiles \
|
||||
--file dockerfiles/Dockerfile-ubuntu \
|
||||
--tag mydockernamespace/cinder-testing:418167-1 \
|
||||
--tag mydockernamespace/cinder-testing:416334-2 \
|
||||
--build-arg GIT_REPO=http://git.openstack.org/openstack/cinder.git \
|
||||
--build-arg GIT_REF_REPO=http://git.openstack.org/openstack/cinder.git \
|
||||
--build-arg GIT_REF=refs/changes/67/418167/1
|
||||
--build-arg GIT_REF=refs/changes/34/416334/2
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ RUN set -x \
|
|||
&& pip install --no-index --no-compile --find-links /tmp/packages --constraint /tmp/packages/upper-constraints.txt python-memcached pymysql \
|
||||
# Project specific command block end
|
||||
&& yum history -y undo $(yum history list git | tail -2 | head -1 | awk '{ print $1}') \
|
||||
&& rpm -e --nodeps centos-logos \
|
||||
&& yum clean all \
|
||||
&& rm -rf /tmp/* /root/.cache \
|
||||
&& find / -type f \( -name "*.pyc" -o -name "pip" -o -name "easy_install" -o -name "wheel" \) -delete
|
||||
|
|
Loading…
Reference in New Issue