@@ -124,31 +124,34 @@ docker-compose up -d
124
124
125
125
From time to time it might become necessary to re-engineer the structure of this setup.
126
126
Things like the ` docker-compose.yml ` file or your Kubernetes or OpenShift configurations have to be adjusted as a consequence.
127
+
127
128
Since November 2019 each image built from this repo contains a ` org.opencontainers.image.version ` label.
128
129
(The images contained labels since April 2018, although in November 2019 the labels' names changed.)
129
- You can check the label of your local image by running ` docker inspect netboxcommunity/netbox:v2.7.1 --format "{{json .ContainerConfig .Labels}}" ` .
130
+ You can check the label of your local image by running ` docker inspect netboxcommunity/netbox:v2.7.1 --format "{{json .Config .Labels}}" ` .
130
131
131
132
Please read [ the release notes] [ releases ] carefully when updating to a new image version.
132
133
133
134
[ releases ] : https://github.com/netbox-community/netbox-docker/releases
134
135
135
- ## Rebuilding & Publishing images
136
+ ## Rebuilding the Image
136
137
137
138
` ./build.sh ` can be used to rebuild the Docker image. See ` ./build.sh --help ` for more information.
138
139
139
- ### Publishing Docker Images
140
+ For more details on custom builds [ consult our wiki] [ netbox-docker-wiki-build ] .
141
+
142
+ [ netbox-docker-wiki-build ] : https://github.com/netbox-community/netbox-docker/wiki/Build
140
143
141
- New Docker images are built and published every 24h on the [ Docker Build Infrastructure] [ docker-build-infra ] .
142
- ` DOCKER_HUB.md ` contains more information about the build infrastructure.
144
+ ### Pre-made Docker Images
143
145
144
- [ docker-build-infra ] : https://hub.docker.com/r/netboxcommunity/netbox/builds/
146
+ New Docker images are built and published every 24h.
145
147
146
148
## Tests
147
149
148
- To run the tests coming with Netbox, use the ` docker-compose.yml ` file as such:
150
+ We have a test script.
151
+ It runs Netbox's own unit tests and ensures that all initializers work:
149
152
150
153
``` bash
151
- docker-compose run netbox ./manage.py test
154
+ IMAGE=netboxcommunity/ netbox:latest ./test.sh
152
155
```
153
156
154
157
## About
0 commit comments