Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1701399
Update dependency sentry-sdk to v2.21.0
renovate[bot] Feb 12, 2025
c3f119b
Merge pull request #1396 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Feb 12, 2025
0f0ce52
Update ghcr.io/astral-sh/uv Docker tag to v0.6
renovate[bot] Feb 14, 2025
6edc921
Merge pull request #1399 from netbox-community/renovate/ghcr.io-astra…
tobiasge Feb 14, 2025
29bef74
Update dependency django-storages to v1.14.5
renovate[bot] Feb 15, 2025
e614966
Merge pull request #1400 from netbox-community/renovate/django-storag…
tobiasge Feb 15, 2025
25b0222
Update dependency sentry-sdk to v2.22.0
renovate[bot] Feb 17, 2025
caa3d33
Merge pull request #1405 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Feb 17, 2025
34c26bb
Update docker.io/valkey/valkey Docker tag to v8.1
renovate[bot] Feb 17, 2025
9eee74b
Update dependency dulwich to v0.22.8
renovate[bot] Mar 3, 2025
849f8be
Make superliner happy
tobiasge Mar 6, 2025
4eb0d6a
Update test configuration
tobiasge Mar 6, 2025
b6a30bf
Merge pull request #1413 from netbox-community/renovate/dulwich-0.x
tobiasge Mar 7, 2025
1c8cdfa
Update Nginx Unit
tobiasge Mar 14, 2025
d9f72e9
Update dependency sentry-sdk to v2.23.0
renovate[bot] Mar 17, 2025
0f7e72f
Merge pull request #1420 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Mar 17, 2025
d9da3fa
Update dependency sentry-sdk to v2.23.1
renovate[bot] Mar 17, 2025
bb8f2fd
Merge pull request #1421 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Mar 17, 2025
017098a
Update dependency sentry-sdk to v2.24.0
renovate[bot] Mar 21, 2025
e5400e3
Merge pull request #1423 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Mar 21, 2025
139c158
Update dependency sentry-sdk to v2.24.1
renovate[bot] Mar 24, 2025
c31ed9a
Merge pull request #1426 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Mar 24, 2025
c8bd177
Fix deprecated config name
skupjoe Mar 23, 2025
1c30173
Merge pull request #1425 from skupjoe/fix-editorconfig-checker
tobiasge Mar 24, 2025
687b838
Merge pull request #1418 from tobiasge/update-unit
tobiasge Mar 27, 2025
688d890
Update dependency sentry-sdk to v2.25.0
renovate[bot] Mar 31, 2025
8179a43
Merge pull request #1431 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Mar 31, 2025
67ddeb6
Update dependency django-storages to v1.14.6
renovate[bot] Apr 2, 2025
5ded00b
Update dependency sentry-sdk to v2.25.1
renovate[bot] Apr 2, 2025
fef49f4
Merge pull request #1435 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Apr 2, 2025
61eaffa
Merge pull request #1432 from netbox-community/renovate/django-storag…
tobiasge Apr 2, 2025
ec9a3e8
Prepare for NetBox 4.3
tobiasge Apr 12, 2025
8f7c217
Match upstream testing configuration
tobiasge Apr 12, 2025
19e167e
Update dependency sentry-sdk to v2.26.1
renovate[bot] Apr 15, 2025
8431b77
Use develop branch for pre-releases
tobiasge Apr 19, 2025
f1864f8
Merge pull request #1439 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Apr 19, 2025
82d9d8a
Merge pull request #1438 from tobiasge/prepare-netbox-43
tobiasge Apr 20, 2025
83f87b4
Merge pull request #1406 from netbox-community/renovate/docker.io-val…
tobiasge Apr 20, 2025
0fe49f8
Update dependency sentry-sdk to v2.27.0
renovate[bot] Apr 24, 2025
83ec1c2
Merge pull request #1446 from netbox-community/renovate/sentry-sdk-2.x
tobiasge Apr 25, 2025
fcd5b4e
Merge remote-tracking branch 'upstream/release' into merge-back
tobiasge Apr 25, 2025
7078ab7
Merge pull request #1448 from tobiasge/merge-back
tobiasge Apr 25, 2025
56defa3
Update ghcr.io/astral-sh/uv Docker tag to v0.7
renovate[bot] Apr 30, 2025
b845efe
Merge pull request #1449 from netbox-community/renovate/ghcr.io-astra…
tobiasge May 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ indent_size = 2

[*.py]
indent_size = 4

[VERSION]
insert_final_newline = false
9 changes: 2 additions & 7 deletions .ecrc → .editorconfig-checker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
"Verbose": false,
"Debug": false,
"IgnoreDefaults": false,
"SpacesAftertabs": false,
"SpacesAfterTabs": false,
"NoColor": false,
"Exclude": [
"LICENSE",
"\\.initializers",
"\\.vscode"
],
"Exclude": ["LICENSE", "\\.initializers", "\\.vscode"],
"AllowedContentTypes": [],
"PassedFiles": [],
"Disable": {
// set these options to true to disable specific checks
"EndOfLine": false,
"Indentation": false,
"InsertFinalNewline": false,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
VALIDATE_GITLEAKS: false
VALIDATE_JSCPD: false
FILTER_REGEX_EXCLUDE: (.*/)?(LICENSE|configuration/.*)
EDITORCONFIG_FILE_NAME: .ecrc
EDITORCONFIG_FILE_NAME: .editorconfig-checker.json
DOCKERFILE_HADOLINT_FILE_NAME: .hadolint.yaml
MARKDOWN_CONFIG_FILE: .markdown-lint.yml
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
build:
strategy:
matrix:
build_cmd:
- ./build-latest.sh
- PRERELEASE=true ./build-latest.sh
- ./build.sh feature
- ./build.sh main
build:
- { "cmd": "./build-latest.sh", "branch": "release" }
- { "cmd": "./build.sh main", "branch": "release" }
# Build pre release images from our develop branch
# This is used to test the latest changes before they are merged into the main branch
- { "cmd": "PRERELEASE=true ./build-latest.sh", "branch": "develop" }
- { "cmd": "./build.sh feature", "branch": "develop" }
platform:
- linux/amd64,linux/arm64
fail-fast: false
Expand All @@ -31,15 +33,17 @@ jobs:
- id: source-checkout
name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.build.branch }}
- id: set-netbox-docker-version
name: Get Version of NetBox Docker
run: echo "version=$(cat VERSION)" >>"$GITHUB_OUTPUT"
shell: bash
- id: check-build-needed
name: Check if the build is needed for '${{ matrix.build_cmd }}'
name: Check if the build is needed for '${{ matrix.build.cmd }}'
env:
CHECK_ONLY: "true"
run: ${{ matrix.build_cmd }}
run: ${{ matrix.build.cmd }}
# docker.io
- id: docker-io-login
name: Login to docker.io
Expand Down Expand Up @@ -77,7 +81,7 @@ jobs:
if: steps.check-build-needed.outputs.skipped != 'true'
- id: build-and-push
name: Push the image
run: ${{ matrix.build_cmd }} --push
run: ${{ matrix.build.cmd }} --push
if: steps.check-build-needed.outputs.skipped != 'true'
env:
BUILDX_PLATFORM: ${{ matrix.platform }}
Expand Down
17 changes: 7 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG FROM
FROM ${FROM} AS builder

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

COPY docker/unit.list /etc/apt/sources.list.d/unit.list
ADD --chmod=444 --chown=0:0 https://unit.nginx.org/keys/nginx-keyring.gpg /usr/share/keyrings/nginx-keyring.gpg
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qq \
&& apt-get upgrade \
Expand All @@ -60,15 +64,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
openssl \
python3 \
tini \
&& curl --silent --output /usr/share/keyrings/nginx-keyring.gpg \
https://unit.nginx.org/keys/nginx-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ noble unit" \
> /etc/apt/sources.list.d/unit.list \
&& apt-get update -qq \
&& apt-get install \
--yes -qq --no-install-recommends \
unit=1.34.1-1~noble \
unit-python3.12=1.34.1-1~noble \
unit-python3.12=1.34.2-1~noble \
unit=1.34.2-1~noble \
&& rm -rf /var/lib/apt/lists/*

# Copy the modified 'requirements*.txt' files, to have the files actually used during installation
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.1
3.3.0
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:
retries: 5

redis: &redis
image: docker.io/valkey/valkey:8.0-alpine
image: docker.io/valkey/valkey:8.1-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
netbox: &netbox
image: docker.io/netboxcommunity/netbox:${VERSION-v4.2-3.2.1}
image: docker.io/netboxcommunity/netbox:${VERSION-v4.3-3.3.0}
depends_on:
- postgres
- redis
Expand Down Expand Up @@ -59,7 +59,7 @@ services:

# redis
redis:
image: docker.io/valkey/valkey:8.0-alpine
image: docker.io/valkey/valkey:8.1-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
Expand All @@ -74,7 +74,7 @@ services:
volumes:
- netbox-redis-data:/data
redis-cache:
image: docker.io/valkey/valkey:8.0-alpine
image: docker.io/valkey/valkey:8.1-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
Expand Down
1 change: 1 addition & 0 deletions docker/unit.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] http://packages.nginx.org/unit/ubuntu/ noble unit
3 changes: 1 addition & 2 deletions requirements-container.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
django-auth-ldap==5.1.0
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.6
dulwich==0.22.7
dulwich==0.22.8
python3-saml==1.16.0
--no-binary lxml
--no-binary xmlsec
Expand Down
6 changes: 6 additions & 0 deletions test-configuration/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
'disable_existing_loggers': True
}

PLUGINS = [
'netbox.tests.dummy_plugin',
]

ALLOW_TOKEN_RETRIEVAL = True

DEFAULT_PERMISSIONS = {}