Skip to content

Commit 477decd

Browse files
authored
Merge pull request #1450 from netbox-community/develop
Version 3.3.0
2 parents 2efacf3 + b845efe commit 477decd

11 files changed

+38
-33
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ indent_size = 2
99

1010
[*.py]
1111
indent_size = 4
12+
13+
[VERSION]
14+
insert_final_newline = false

.ecrc renamed to .editorconfig-checker.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
"Verbose": false,
33
"Debug": false,
44
"IgnoreDefaults": false,
5-
"SpacesAftertabs": false,
5+
"SpacesAfterTabs": false,
66
"NoColor": false,
7-
"Exclude": [
8-
"LICENSE",
9-
"\\.initializers",
10-
"\\.vscode"
11-
],
7+
"Exclude": ["LICENSE", "\\.initializers", "\\.vscode"],
128
"AllowedContentTypes": [],
139
"PassedFiles": [],
1410
"Disable": {
15-
// set these options to true to disable specific checks
1611
"EndOfLine": false,
1712
"Indentation": false,
1813
"InsertFinalNewline": false,

.github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
VALIDATE_GITLEAKS: false
4242
VALIDATE_JSCPD: false
4343
FILTER_REGEX_EXCLUDE: (.*/)?(LICENSE|configuration/.*)
44-
EDITORCONFIG_FILE_NAME: .ecrc
44+
EDITORCONFIG_FILE_NAME: .editorconfig-checker.json
4545
DOCKERFILE_HADOLINT_FILE_NAME: .hadolint.yaml
4646
MARKDOWN_CONFIG_FILE: .markdown-lint.yml
4747
PYTHON_BLACK_CONFIG_FILE: pyproject.toml

.github/workflows/release.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
build_cmd:
17-
- ./build-latest.sh
18-
- PRERELEASE=true ./build-latest.sh
19-
- ./build.sh feature
20-
- ./build.sh main
16+
build:
17+
- { "cmd": "./build-latest.sh", "branch": "release" }
18+
- { "cmd": "./build.sh main", "branch": "release" }
19+
# Build pre release images from our develop branch
20+
# This is used to test the latest changes before they are merged into the main branch
21+
- { "cmd": "PRERELEASE=true ./build-latest.sh", "branch": "develop" }
22+
- { "cmd": "./build.sh feature", "branch": "develop" }
2123
platform:
2224
- linux/amd64,linux/arm64
2325
fail-fast: false
@@ -31,15 +33,17 @@ jobs:
3133
- id: source-checkout
3234
name: Checkout
3335
uses: actions/checkout@v4
36+
with:
37+
ref: ${{ matrix.build.branch }}
3438
- id: set-netbox-docker-version
3539
name: Get Version of NetBox Docker
3640
run: echo "version=$(cat VERSION)" >>"$GITHUB_OUTPUT"
3741
shell: bash
3842
- id: check-build-needed
39-
name: Check if the build is needed for '${{ matrix.build_cmd }}'
43+
name: Check if the build is needed for '${{ matrix.build.cmd }}'
4044
env:
4145
CHECK_ONLY: "true"
42-
run: ${{ matrix.build_cmd }}
46+
run: ${{ matrix.build.cmd }}
4347
# docker.io
4448
- id: docker-io-login
4549
name: Login to docker.io
@@ -77,7 +81,7 @@ jobs:
7781
if: steps.check-build-needed.outputs.skipped != 'true'
7882
- id: build-and-push
7983
name: Push the image
80-
run: ${{ matrix.build_cmd }} --push
84+
run: ${{ matrix.build.cmd }} --push
8185
if: steps.check-build-needed.outputs.skipped != 'true'
8286
env:
8387
BUILDX_PLATFORM: ${{ matrix.platform }}

Dockerfile

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG FROM
22
FROM ${FROM} AS builder
33

4-
COPY --from=ghcr.io/astral-sh/uv:0.5 /uv /usr/local/bin/
4+
COPY --from=ghcr.io/astral-sh/uv:0.7 /uv /usr/local/bin/
55
RUN export DEBIAN_FRONTEND=noninteractive \
66
&& apt-get update -qq \
77
&& apt-get upgrade \
@@ -33,6 +33,8 @@ RUN \
3333
# we have potential version conflicts and the build will fail.
3434
# That's why we just replace it in the original requirements.txt.
3535
sed -i -e 's/social-auth-core/social-auth-core\[all\]/g' /requirements.txt && \
36+
# The same is true for 'django-storages'
37+
sed -i -e 's/django-storages/django-storages\[azure,boto3,dropbox,google,libcloud,sftp\]/g' /requirements.txt && \
3638
/usr/local/bin/uv pip install \
3739
-r /requirements.txt \
3840
-r /requirements-container.txt
@@ -44,6 +46,8 @@ RUN \
4446
ARG FROM
4547
FROM ${FROM} AS main
4648

49+
COPY docker/unit.list /etc/apt/sources.list.d/unit.list
50+
ADD --chmod=444 --chown=0:0 https://unit.nginx.org/keys/nginx-keyring.gpg /usr/share/keyrings/nginx-keyring.gpg
4751
RUN export DEBIAN_FRONTEND=noninteractive \
4852
&& apt-get update -qq \
4953
&& apt-get upgrade \
@@ -60,15 +64,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
6064
openssl \
6165
python3 \
6266
tini \
63-
&& curl --silent --output /usr/share/keyrings/nginx-keyring.gpg \
64-
https://unit.nginx.org/keys/nginx-keyring.gpg \
65-
&& echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ noble unit" \
66-
> /etc/apt/sources.list.d/unit.list \
67-
&& apt-get update -qq \
68-
&& apt-get install \
69-
--yes -qq --no-install-recommends \
70-
unit=1.34.1-1~noble \
71-
unit-python3.12=1.34.1-1~noble \
67+
unit-python3.12=1.34.2-1~noble \
68+
unit=1.34.2-1~noble \
7269
&& rm -rf /var/lib/apt/lists/*
7370

7471
# Copy the modified 'requirements*.txt' files, to have the files actually used during installation

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.1
1+
3.3.0

docker-compose.test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
retries: 5
5050

5151
redis: &redis
52-
image: docker.io/valkey/valkey:8.0-alpine
52+
image: docker.io/valkey/valkey:8.1-alpine
5353
command:
5454
- sh
5555
- -c # this is to evaluate the $REDIS_PASSWORD from the env

docker-compose.yml

+3-3
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.2-3.2.1}
3+
image: docker.io/netboxcommunity/netbox:${VERSION-v4.3-3.3.0}
44
depends_on:
55
- postgres
66
- redis
@@ -59,7 +59,7 @@ services:
5959

6060
# redis
6161
redis:
62-
image: docker.io/valkey/valkey:8.0-alpine
62+
image: docker.io/valkey/valkey:8.1-alpine
6363
command:
6464
- sh
6565
- -c # this is to evaluate the $REDIS_PASSWORD from the env
@@ -74,7 +74,7 @@ services:
7474
volumes:
7575
- netbox-redis-data:/data
7676
redis-cache:
77-
image: docker.io/valkey/valkey:8.0-alpine
77+
image: docker.io/valkey/valkey:8.1-alpine
7878
command:
7979
- sh
8080
- -c # this is to evaluate the $REDIS_PASSWORD from the env

docker/unit.list

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] http://packages.nginx.org/unit/ubuntu/ noble unit

requirements-container.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
django-auth-ldap==5.1.0
2-
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.6
3-
dulwich==0.22.7
2+
dulwich==0.22.8
43
python3-saml==1.16.0
54
--no-binary lxml
65
--no-binary xmlsec

test-configuration/test_config.py

+6
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33
'disable_existing_loggers': True
44
}
55

6+
PLUGINS = [
7+
'netbox.tests.dummy_plugin',
8+
]
9+
10+
ALLOW_TOKEN_RETRIEVAL = True
11+
612
DEFAULT_PERMISSIONS = {}

0 commit comments

Comments
 (0)