Skip to content

Commit bd9bdd0

Browse files
authored
Merge pull request #1369 from netbox-community/develop
Version 3.1.0
2 parents 27bf52c + 11615df commit bd9bdd0

File tree

10 files changed

+48
-52
lines changed

10 files changed

+48
-52
lines changed

Diff for: .github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- ./build-latest.sh
5656
- PRERELEASE=true ./build-latest.sh
5757
- ./build.sh feature
58-
- ./build.sh develop
58+
- ./build.sh main
5959
os:
6060
- ubuntu-latest
6161
- self-hosted

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- ./build-latest.sh
1818
- PRERELEASE=true ./build-latest.sh
1919
- ./build.sh feature
20-
- ./build.sh develop
20+
- ./build.sh main
2121
platform:
2222
- linux/amd64,linux/arm64
2323
fail-fast: false

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
7171
&& apt-get update -qq \
7272
&& apt-get install \
7373
--yes -qq --no-install-recommends \
74-
unit=1.33.0-1~noble \
75-
unit-python3.12=1.33.0-1~noble \
74+
unit=1.34.0-1~noble \
75+
unit-python3.12=1.34.0-1~noble \
7676
&& rm -rf /var/lib/apt/lists/*
7777

7878
COPY --from=builder /opt/netbox/venv /opt/netbox/venv

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.2
1+
3.1.0

Diff for: build.sh

+13-20
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ SKIP_GIT If defined, git is not invoked and \${NETBOX_PATH} will not be alter
3939
4040
TAG The version part of the image tag.
4141
${_GREEN}Default:${_CLEAR}
42-
When <branch>=master: latest
43-
When <branch>=develop: snapshot
44-
Else: same as <branch>
42+
When <branch>=main: snapshot
43+
Else: same as <branch>
4544
4645
IMAGE_NAMES The names used for the image including the registry
4746
Used for tagging the image.
@@ -104,24 +103,21 @@ GH_ACTION If defined, special 'echo' statements are enabled that set the
104103
${_GREEN}Default:${_CLEAR} undefined
105104
106105
CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
106+
${_GREEN}Default:${_CLEAR} undefined
107107
108108
${_BOLD}Examples:${_CLEAR}
109109
110-
${0} master
111-
This will fetch the latest 'master' branch, build a Docker Image and tag it
112-
'netboxcommunity/netbox:latest'.
113-
114-
${0} develop
115-
This will fetch the latest 'develop' branch, build a Docker Image and tag it
110+
${0} main
111+
This will fetch the latest 'main' branch, build a Docker Image and tag it
116112
'netboxcommunity/netbox:snapshot'.
117113
118-
${0} v2.6.6
119-
This will fetch the 'v2.6.6' tag, build a Docker Image and tag it
120-
'netboxcommunity/netbox:v2.6.6' and 'netboxcommunity/netbox:v2.6'.
114+
${0} v4.2.0
115+
This will fetch the 'v4.2.0' tag, build a Docker Image and tag it
116+
'netboxcommunity/netbox:v4.2.0' and 'netboxcommunity/netbox:v4.2'.
121117
122-
${0} develop-2.7
123-
This will fetch the 'develop-2.7' branch, build a Docker Image and tag it
124-
'netboxcommunity/netbox:develop-2.7'.
118+
${0} feature
119+
This will fetch the 'feature' branch, build a Docker Image and tag it
120+
'netboxcommunity/netbox:feature'.
125121
126122
SRC_ORG=cimnine ${0} feature-x
127123
This will fetch the 'feature-x' branch from https://github.com/cimnine/netbox.git,
@@ -259,10 +255,7 @@ DOCKER_REGISTRY="${DOCKER_REGISTRY-docker.io}"
259255
DOCKER_ORG="${DOCKER_ORG-netboxcommunity}"
260256
DOCKER_REPO="${DOCKER_REPO-netbox}"
261257
case "${NETBOX_BRANCH}" in
262-
master)
263-
TAG="${TAG-latest}"
264-
;;
265-
develop)
258+
main)
266259
TAG="${TAG-snapshot}"
267260
;;
268261
*)
@@ -278,7 +271,7 @@ TARGET_DOCKER_TAG_PROJECT="${TARGET_DOCKER_TAG}-${PROJECT_VERSION}"
278271

279272
###
280273
# composing the additional DOCKER_SHORT_TAG,
281-
# i.e. "v2.6.1" becomes "v2.6",
274+
# i.e. "v4.2.0" becomes "v4.2",
282275
# which is only relevant for version tags
283276
# Also let "latest" follow the highest version
284277
###

Diff for: docker-compose.test.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ services:
99
redis-cache:
1010
condition: service_healthy
1111
env_file: env/netbox.env
12-
user: 'unit:root'
12+
user: "unit:root"
1313
volumes:
14-
- ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
14+
- ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
1515
healthcheck:
1616
test: curl -f http://localhost:8080/login/ || exit 1
1717
start_period: ${NETBOX_START_PERIOD-120s}
@@ -20,9 +20,9 @@ services:
2020
netbox-worker:
2121
<<: *netbox
2222
command:
23-
- /opt/netbox/venv/bin/python
24-
- /opt/netbox/netbox/manage.py
25-
- rqworker
23+
- /opt/netbox/venv/bin/python
24+
- /opt/netbox/netbox/manage.py
25+
- rqworker
2626
healthcheck:
2727
test: ps -aux | grep -v grep | grep -q rqworker || exit 1
2828
start_period: 40s
@@ -31,15 +31,15 @@ services:
3131
netbox-housekeeping:
3232
<<: *netbox
3333
command:
34-
- /opt/netbox/housekeeping.sh
34+
- /opt/netbox/housekeeping.sh
3535
healthcheck:
3636
test: ps -aux | grep -v grep | grep -q housekeeping || exit 1
3737
start_period: 40s
3838
timeout: 3s
3939
interval: 15s
4040

4141
postgres:
42-
image: docker.io/postgres:16-alpine
42+
image: docker.io/postgres:17-alpine
4343
env_file: env/postgres.env
4444
healthcheck:
4545
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER ## $$ because of docker-compose
@@ -51,12 +51,12 @@ services:
5151
redis: &redis
5252
image: docker.io/valkey/valkey:8.0-alpine
5353
command:
54-
- sh
55-
- -c # this is to evaluate the $REDIS_PASSWORD from the env
56-
- valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
54+
- sh
55+
- -c # this is to evaluate the $REDIS_PASSWORD from the env
56+
- valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
5757
env_file: env/redis.env
5858
healthcheck:
59-
test: "[ $$(valkey-cli --pass \"$${REDIS_PASSWORD}\" ping) = 'PONG' ]"
59+
test: '[ $$(valkey-cli --pass "$${REDIS_PASSWORD}" ping) = ''PONG'' ]'
6060
start_period: 5s
6161
timeout: 3s
6262
interval: 1s

Diff for: docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
netbox: &netbox
3-
image: docker.io/netboxcommunity/netbox:${VERSION-v4.1-3.0.2}
3+
image: docker.io/netboxcommunity/netbox:${VERSION-v4.2-3.1.0}
44
depends_on:
55
- postgres
66
- redis
@@ -46,7 +46,7 @@ services:
4646

4747
# postgres
4848
postgres:
49-
image: docker.io/postgres:16-alpine
49+
image: docker.io/postgres:17-alpine
5050
healthcheck:
5151
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
5252
start_period: 20s

Diff for: docker/nginx-unit.json

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"listeners": {
3-
"0.0.0.0:8080": {
4-
"pass": "routes/main"
5-
},
6-
"[::]:8080": {
7-
"pass": "routes/main"
8-
},
9-
"0.0.0.0:8081": {
10-
"pass": "routes/status"
3+
"*:8080": {
4+
"pass": "routes/main",
5+
"forwarded": {
6+
"client_ip": "X-Forwarded-For",
7+
"protocol": "X-Forwarded-Proto",
8+
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
9+
}
1110
},
12-
"[::]:8081": {
13-
"pass": "routes/status"
11+
"*:8081": {
12+
"pass": "routes/status",
13+
"forwarded": {
14+
"client_ip": "X-Forwarded-For",
15+
"protocol": "X-Forwarded-Proto",
16+
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
17+
}
1418
}
1519
},
1620
"routes": {

Diff for: requirements-container.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
django-auth-ldap==4.8.0
1+
django-auth-ldap==5.1.0
22
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.4
3-
dulwich==0.22.1
3+
dulwich==0.22.7
44
python3-saml==1.16.0 --no-binary lxml,xmlsec
5-
sentry-sdk[django]==2.14.0
5+
sentry-sdk[django]==2.19.2

Diff for: test-configuration/test_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
}
55

66
DEFAULT_PERMISSIONS = {}
7-
LOGIN_REQUIRED = False

0 commit comments

Comments
 (0)