Update centos example in README to use WHEELS

It's important to specify WHEELS when building a distro other than the
default. This was missing from the README example.

Change-Id: Id1ab77b14e6efcc14d6e043d3c2d38883d072809
This commit is contained in:
Paul Bourke 2018-07-18 00:05:28 +01:00
parent 8982c3ae71
commit 73aaf1072c
1 changed files with 5 additions and 2 deletions

View File

@ -41,8 +41,11 @@ $ docker build https://git.openstack.org/openstack/loci.git --build-arg PROJECT=
The default base distro is Ubuntu, however, you can use the following form to build from a distro of
your choice, in this case, CentOS:
``` bash
$ docker build https://git.openstack.org/openstack/loci.git --build-arg PROJECT=keystone \
--tag keystone:centos --build-arg FROM=centos:7
$ docker build https://git.openstack.org/openstack/loci.git \
--build-arg PROJECT=keystone \
--build-arg WHEELS="loci/requirements:master-centos" \
--build-arg FROM=centos:7 \
--tag keystone:centos
```
If building behind a proxy, remember to use build arguments to pass these