Integration tests: Clarify docs for image building

Signed-off-by: Till Maas <opensource@till.name>
This commit is contained in:
Till Maas 2018-11-27 12:33:08 +01:00 committed by Edward Haas
parent 7754fecaa6
commit 54f03f11a8

View File

@ -74,9 +74,20 @@ cd /workspace/nmstate
tox -e check-integ-py27
```
### Build a new container image and push to the docker hub
### Build a new container image
```
sudo docker build --rm -t local/centos7-nmstate-dev .
```
To test the image, either specify it manually as described above or tag it locally:
```
docker tag local/centos7-nmstate-dev nmstate/centos7-nmstate-dev:latest
```
### Push local image to the docker hub
```
docker tag local/centos7-nmstate-dev nmstate/centos7-nmstate-dev:<ver>
docker tag local/centos7-nmstate-dev nmstate/centos7-nmstate-dev:latest
docker push nmstate/centos7-nmstate-dev:<ver>