3
3
[ ![ GitHub release (latest by date)] ( https://img.shields.io/github/v/release/netbox-community/netbox-docker )] [ github-release ]
4
4
[ ![ GitHub stars] ( https://img.shields.io/github/stars/netbox-community/netbox-docker )] [ github-stargazers ]
5
5
![ GitHub closed pull requests] ( https://img.shields.io/github/issues-pr-closed-raw/netbox-community/netbox-docker )
6
- ![ Docker Cloud Build Status ] ( https://img.shields.io/docker/cloud/build/netboxcommunity /netbox )
6
+ ![ Github release workflow ] ( https://img.shields.io/github/workflow/status/netbox-community /netbox-docker/release )
7
7
![ Docker Pulls] ( https://img.shields.io/docker/pulls/netboxcommunity/netbox )
8
8
[ ![ MicroBadger Layers] ( https://img.shields.io/microbadger/layers/netboxcommunity/netbox )] [ netbox-docker-microbadger ]
9
9
[ ![ MicroBadger Size] ( https://img.shields.io/microbadger/image-size/netboxcommunity/netbox )] [ netbox-docker-microbadger ]
@@ -21,7 +21,7 @@ Do you have any questions? Before opening an issue on Github, please join the [N
21
21
[ netbox-docker-github ] : https://github.com/netbox-community/netbox-docker/
22
22
[ ntc-slack ] : http://slack.networktocode.com/
23
23
[ netbox-docker-slack ] : https://slack.com/app_redirect?channel=netbox-docker&team=T09LQ7E9E
24
- [ netbox-docker-license ] : https://github.com/netbox-community/netbox-docker/blob/master /LICENSE
24
+ [ netbox-docker-license ] : https://github.com/netbox-community/netbox-docker/blob/release /LICENSE
25
25
26
26
## Docker Tags
27
27
@@ -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