Skip to content

Commit 3f1e45f

Browse files
authored
Merge pull request #839 from netbox-community/develop
Version 2.2.0
2 parents ebda466 + e38c1d3 commit 3f1e45f

File tree

106 files changed

+19
-2989
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+19
-2989
lines changed

β€ŽDockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
4141
--yes -qq --no-install-recommends \
4242
&& apt-get install \
4343
--yes -qq --no-install-recommends \
44+
bzip2 \
4445
ca-certificates \
4546
curl \
4647
libldap-common \
@@ -70,8 +71,6 @@ COPY docker/ldap_config.docker.py /opt/netbox/netbox/netbox/ldap_config.py
7071
COPY docker/docker-entrypoint.sh /opt/netbox/docker-entrypoint.sh
7172
COPY docker/housekeeping.sh /opt/netbox/housekeeping.sh
7273
COPY docker/launch-netbox.sh /opt/netbox/launch-netbox.sh
73-
COPY startup_scripts/ /opt/netbox/startup_scripts/
74-
COPY initializers/ /opt/netbox/initializers/
7574
COPY configuration/ /etc/netbox/config/
7675
COPY docker/nginx-unit.json /etc/unit/
7776

β€ŽREADME.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
![Docker Pulls](https://img.shields.io/docker/pulls/netboxcommunity/netbox)
88
[![GitHub license](https://img.shields.io/github/license/netbox-community/netbox-docker)][netbox-docker-license]
99

10-
[The GitHub repository](netbox-docker-github) houses the components needed to build NetBox as a container.
10+
[The GitHub repository][netbox-docker-github] houses the components needed to build NetBox as a container.
1111
Images are built regularly using the code in that repository and are pushed to [Docker Hub][netbox-dockerhub], [Quay.io][netbox-quayio] and [GitHub Container Registry][netbox-ghcr].
1212

1313
Do you have any questions?
@@ -16,7 +16,6 @@ please join [our Slack][netbox-docker-slack] and ask for help in the [`#netbox-d
1616

1717
[github-stargazers]: https://github.com/netbox-community/netbox-docker/stargazers
1818
[github-release]: https://github.com/netbox-community/netbox-docker/releases
19-
[netbox-docker-microbadger]: https://microbadger.com/images/netboxcommunity/netbox
2019
[netbox-dockerhub]: https://hub.docker.com/r/netboxcommunity/netbox/
2120
[netbox-quayio]: https://quay.io/repository/netboxcommunity/netbox
2221
[netbox-ghcr]: https://github.com/netbox-community/netbox-docker/pkgs/container/netbox
@@ -56,7 +55,6 @@ The default credentials are:
5655
* API Token: **0123456789abcdef0123456789abcdef01234567**
5756

5857
[wiki-getting-started]: https://github.com/netbox-community/netbox-docker/wiki/Getting-Started
59-
[docker-reception]: https://github.com/nxt-engineering/reception
6058

6159
## Container Image Tags
6260

@@ -92,17 +90,9 @@ For each of the above tag, there is an extra tag:
9290
This is the same version as `snapshot-a.b.c`.
9391
It always points to the latest version of _NetBox Docker_.
9492

95-
Then there is currently one extra tags for each of the above tags:
96-
97-
* `-ldap`:
98-
These container images contain additional dependencies and configuration files for connecting NetBox to an LDAP directory.
99-
[Learn more about that in our wiki][netbox-docker-ldap].
100-
10193
[netbox-releases]: https://github.com/netbox-community/netbox/releases
10294
[netbox-master]: https://github.com/netbox-community/netbox/tree/master
10395
[netbox-develop]: https://github.com/netbox-community/netbox/tree/develop
104-
[netbox-branches]: https://github.com/netbox-community/netbox/branches
105-
[netbox-docker-ldap]: https://github.com/netbox-community/netbox-docker/wiki/LDAP
10696

10797
## Documentation
10898

@@ -127,10 +117,11 @@ you may find [the `#netbox` channel][netbox-slack-channel] on the same Slack ins
127117

128118
## Dependencies
129119

130-
This project relies only on *Docker* and *docker-compose* meeting these requirements:
120+
This project relies only on _Docker_ and _docker-compose_ meeting these requirements:
131121

132-
* The *Docker version* must be at least `19.03`.
133-
* The *docker-compose version* must be at least `1.28.0`.
122+
* The _Docker version_ must be at least `20.10.10`.
123+
* The _containerd version_ must be at least `1.5.6`.
124+
* The _docker-compose version_ must be at least `1.28.0`.
134125

135126
To check the version installed on your system run `docker --version` and `docker-compose --version`.
136127

β€ŽVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0
1+
2.2.0

β€Ždocker-compose.test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ services:
1111
SKIP_STARTUP_SCRIPTS: ${SKIP_STARTUP_SCRIPTS-false}
1212
user: 'unit:root'
1313
volumes:
14-
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
15-
- ./${INITIALIZERS_DIR-initializers}:/opt/netbox/initializers:z,ro
1614
- ./configuration:/etc/netbox/config:z,ro
15+
- ./test-configuration/logging.py:/etc/netbox/config/logging.py:z,ro
1716
- ./reports:/etc/netbox/reports:z,ro
1817
- ./scripts:/etc/netbox/scripts:z,ro
1918
- netbox-media-files:/opt/netbox/netbox/media:z

β€Ždocker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.4'
22
services:
33
netbox: &netbox
4-
image: netboxcommunity/netbox:${VERSION-v3.2-2.1.0}
4+
image: netboxcommunity/netbox:${VERSION-v3.3-2.2.0}
55
depends_on:
66
- postgres
77
- redis
@@ -10,8 +10,6 @@ services:
1010
env_file: env/netbox.env
1111
user: 'unit:root'
1212
volumes:
13-
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
14-
- ./initializers:/opt/netbox/initializers:z,ro
1513
- ./configuration:/etc/netbox/config:z,ro
1614
- ./reports:/etc/netbox/reports:z,ro
1715
- ./scripts:/etc/netbox/scripts:z,ro

β€Ždocker/docker-entrypoint.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,13 @@ END
8080
echo "πŸ’‘ Superuser Username: ${SUPERUSER_NAME}, E-Mail: ${SUPERUSER_EMAIL}"
8181
fi
8282

83-
# Run the startup scripts (and initializers)
83+
# Print warning if startup scripts (and initializers) would've been run # Remove for next release
8484
if [ "$SKIP_STARTUP_SCRIPTS" == "true" ]; then
85-
echo "↩️ Skipping startup scripts"
85+
# Nothing to do
86+
echo "" # Empty block not allowed
8687
else
87-
echo "import runpy; runpy.run_path('../startup_scripts')" | ./manage.py shell --interface python
88+
echo "⚠️⚠️⚠️ WARNING: The initializers have been moved to a plugin. See release notes."
89+
echo "⚠️⚠️⚠️ Set environment variable 'SKIP_STARTUP_SCRIPTS' to 'true' to remove this warning."
8890
fi
8991

9092
echo "βœ… Initialisation is done."

β€Ženv/netbox.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ REDIS_PASSWORD=H733Kdjndks81
3434
REDIS_SSL=false
3535
RELEASE_CHECK_URL=https://api.github.com/repos/netbox-community/netbox/releases
3636
SECRET_KEY=r8OwDznj!!dci#P9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj
37-
SKIP_STARTUP_SCRIPTS=false
3837
SKIP_SUPERUSER=false
3938
SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567
4039
SUPERUSER_EMAIL=admin@example.com

β€Žinitializers/aggregates.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Žinitializers/asns.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Žinitializers/cables.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

β€Žinitializers/circuit_types.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

β€Žinitializers/circuits.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Žinitializers/cluster_groups.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

β€Žinitializers/cluster_types.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

β€Žinitializers/clusters.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Žinitializers/contact_groups.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

β€Žinitializers/contact_roles.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

β€Žinitializers/contacts.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

β€Žinitializers/custom_fields.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

β€Žinitializers/custom_links.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
Β (0)