Packaging: Document image building
Signed-off-by: Till Maas <opensource@till.name>
This commit is contained in:
parent
930f58d9a5
commit
8fe626894a
41
packaging/README-dockerhub.md
Normal file
41
packaging/README-dockerhub.md
Normal file
@ -0,0 +1,41 @@
|
||||
## Docker Hub
|
||||
|
||||
The images are automatically rebuilt on new GIT tags or pushes to the master branch:
|
||||
|
||||
`Dockerfile.centos7-nmstate` by https://cloud.docker.com/u/nmstate/repository/docker/nmstate/centos7-nmstate
|
||||
`Dockerfile.centos7-nmstate-base` by https://cloud.docker.com/u/nmstate/repository/docker/nmstate/centos7-nmstate-base
|
||||
|
||||
The base image contains a common base that is used both for the development
|
||||
image and for the distributed image.
|
||||
|
||||
Configuration (here for `centos7-nmstate-base`, the other build just specifies
|
||||
a different container spec (Dockerfile location):
|
||||
|
||||
Source repo: nmstate/nmstate
|
||||
Autotest: Off
|
||||
Repository Links: Off
|
||||
Build rules:
|
||||
Branch:
|
||||
Source:master
|
||||
Docker Tag:latest
|
||||
Dockerfile location:Dockerfile.centos7-nmstate-base
|
||||
Build Context:/packaging
|
||||
Autobuild:on
|
||||
Build Caching:off
|
||||
|
||||
Tag:
|
||||
Source: /^v[0-9.]+$/
|
||||
Docker Tag:{sourceref}
|
||||
Dockerfile location:Dockerfile.centos7-nmstate-base
|
||||
Build Context:/packaging
|
||||
Autobuild:on
|
||||
Build Caching:off
|
||||
|
||||
## Manual Building
|
||||
|
||||
The Nmstate user image builds the master master branch by default. To specify a
|
||||
different commit or tag, specify the `SOURCE_COMMIT` build argument:
|
||||
|
||||
```shell
|
||||
sudo docker build --no-cache --build-arg SOURCE_COMMIT=v0.0.4 -t nmstate/centos7-nmstate -f Dockerfile.centos7-nmstate .
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user