Compare commits

..

54 Commits

Author SHA1 Message Date
f64ae49f18 Update docker-compose.yml
Some checks failed
release / Builds new NetBox Docker Images (map[branch:develop cmd:./build.sh feature], linux/amd64,linux/arm64) (push) Has been cancelled
release / Builds new NetBox Docker Images (map[branch:develop cmd:PRERELEASE=true ./build-latest.sh], linux/amd64,linux/arm64) (push) Has been cancelled
release / Builds new NetBox Docker Images (map[branch:release cmd:./build-latest.sh], linux/amd64,linux/arm64) (push) Has been cancelled
release / Builds new NetBox Docker Images (map[branch:release cmd:./build.sh main], linux/amd64,linux/arm64) (push) Has been cancelled
2025-05-20 21:43:56 +02:00
4f645769df Update env/netbox.env 2025-05-20 21:42:28 +02:00
db7acaf647 Update env/docker-compose.override.yml 2025-05-20 21:39:22 +02:00
90909d4181 Add env/docker-compose.override.yml 2025-05-20 19:24:47 +02:00
bdbcf7bf4a Update env/netbox.env 2025-05-20 19:15:47 +02:00
477decd80a Merge pull request #1450 from netbox-community/develop
Version 3.3.0
2025-05-05 07:51:26 +02:00
b845efe1ad Merge pull request #1449 from netbox-community/renovate/ghcr.io-astral-sh-uv-0.x
Update ghcr.io/astral-sh/uv Docker tag to v0.7
2025-05-04 15:52:39 +02:00
56defa3f82 Update ghcr.io/astral-sh/uv Docker tag to v0.7 2025-04-30 04:00:06 +00:00
7078ab7519 Merge pull request #1448 from tobiasge/merge-back
Merge back of release into develop
2025-04-25 07:58:35 +02:00
fcd5b4e66b Merge remote-tracking branch 'upstream/release' into merge-back 2025-04-25 07:28:42 +02:00
2efacf39ca Merge pull request #1447 from tobiasge/sentry-hot-fix
Hot fix for Sentry and feature build (Release 3.2.1)
2025-04-25 07:18:54 +02:00
a4ce13be19 Preparation for 3.2.1 2025-04-25 07:06:42 +02:00
fa08388175 Update dependency django-storages to v1.14.6 2025-04-25 07:06:42 +02:00
fd9b41a5d1 Update dependency sentry-sdk to v2.27.0 2025-04-25 06:58:02 +02:00
83ec1c2656 Merge pull request #1446 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.27.0
2025-04-25 06:42:22 +02:00
0fe49f87d7 Update dependency sentry-sdk to v2.27.0 2025-04-24 15:15:00 +00:00
83f87b4ad2 Merge pull request #1406 from netbox-community/renovate/docker.io-valkey-valkey-8.x
Update docker.io/valkey/valkey Docker tag to v8.1
2025-04-20 11:01:11 +02:00
82d9d8ae49 Merge pull request #1438 from tobiasge/prepare-netbox-43
Prepare for NetBox 4.3
2025-04-20 10:50:32 +02:00
f1864f8f20 Merge pull request #1439 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.26.1
2025-04-19 17:36:43 +02:00
8431b77422 Use develop branch for pre-releases 2025-04-19 17:36:09 +02:00
19e167ec19 Update dependency sentry-sdk to v2.26.1 2025-04-15 11:46:55 +00:00
8f7c21749e Match upstream testing configuration 2025-04-12 11:10:33 +02:00
ec9a3e80da Prepare for NetBox 4.3 2025-04-12 10:26:09 +02:00
61eaffaf2e Merge pull request #1432 from netbox-community/renovate/django-storages-1.x
Update dependency django-storages to v1.14.6
2025-04-02 20:10:56 +02:00
fef49f447e Merge pull request #1435 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.25.1
2025-04-02 20:10:25 +02:00
5ded00b6fb Update dependency sentry-sdk to v2.25.1 2025-04-02 16:02:23 +00:00
67ddeb6735 Update dependency django-storages to v1.14.6 2025-04-02 06:32:03 +00:00
8179a4344b Merge pull request #1431 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.25.0
2025-03-31 18:10:09 +02:00
688d8901b7 Update dependency sentry-sdk to v2.25.0 2025-03-31 15:49:55 +00:00
687b8384bc Merge pull request #1418 from tobiasge/update-unit
Update Nginx Unit
2025-03-27 09:52:14 +01:00
1c3017323c Merge pull request #1425 from skupjoe/fix-editorconfig-checker
Fix editorconfig-checker deprecations
2025-03-24 14:45:06 +01:00
c8bd177a93 Fix deprecated config name 2025-03-24 14:18:38 +01:00
c31ed9a79a Merge pull request #1426 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.24.1
2025-03-24 14:09:28 +01:00
139c158d8a Update dependency sentry-sdk to v2.24.1 2025-03-24 12:37:10 +00:00
e5400e345b Merge pull request #1423 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.24.0
2025-03-21 17:35:20 +01:00
017098a587 Update dependency sentry-sdk to v2.24.0 2025-03-21 16:10:17 +00:00
bb8f2fd17c Merge pull request #1421 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.23.1
2025-03-17 20:17:20 +01:00
d9da3fa35b Update dependency sentry-sdk to v2.23.1 2025-03-17 18:07:11 +00:00
0f7e72fc0d Merge pull request #1420 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.23.0
2025-03-17 13:12:44 +01:00
d9f72e94fa Update dependency sentry-sdk to v2.23.0 2025-03-17 11:43:58 +00:00
1c8cdfa6dd Update Nginx Unit 2025-03-14 17:12:42 +01:00
b6a30bf989 Merge pull request #1413 from netbox-community/renovate/dulwich-0.x
Update dependency dulwich to v0.22.8
2025-03-07 19:33:22 +01:00
4eb0d6a368 Update test configuration 2025-03-06 21:29:33 +01:00
849f8bef07 Make superliner happy 2025-03-06 20:56:29 +01:00
9eee74ba61 Update dependency dulwich to v0.22.8 2025-03-03 03:04:24 +00:00
34c26bbd30 Update docker.io/valkey/valkey Docker tag to v8.1 2025-02-17 22:53:25 +00:00
caa3d3324f Merge pull request #1405 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.22.0
2025-02-17 18:26:38 +01:00
25b022203a Update dependency sentry-sdk to v2.22.0 2025-02-17 15:35:24 +00:00
e61496688d Merge pull request #1400 from netbox-community/renovate/django-storages-1.x
Update dependency django-storages to v1.14.5
2025-02-15 20:13:33 +01:00
29bef7450a Update dependency django-storages to v1.14.5 2025-02-15 18:46:36 +00:00
6edc921a79 Merge pull request #1399 from netbox-community/renovate/ghcr.io-astral-sh-uv-0.x
Update ghcr.io/astral-sh/uv Docker tag to v0.6
2025-02-14 20:17:22 +01:00
0f0ce521d6 Update ghcr.io/astral-sh/uv Docker tag to v0.6 2025-02-14 18:56:50 +00:00
c3f119bedc Merge pull request #1396 from netbox-community/renovate/sentry-sdk-2.x
Update dependency sentry-sdk to v2.21.0
2025-02-12 12:54:22 +01:00
1701399b82 Update dependency sentry-sdk to v2.21.0 2025-02-12 11:35:22 +00:00
13 changed files with 66 additions and 53 deletions

View File

@ -9,3 +9,6 @@ indent_size = 2
[*.py]
indent_size = 4
[VERSION]
insert_final_newline = false

View File

@ -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,

View File

@ -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

View File

@ -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
@ -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
@ -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 }}

View File

@ -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 \
@ -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
@ -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 \
@ -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

View File

@ -1 +1 @@
3.2.0
3.3.0

View File

@ -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

View File

@ -1,8 +1,7 @@
services:
netbox: &netbox
image: docker.io/netboxcommunity/netbox:${VERSION-v4.2-3.2.0}
image: docker.io/netboxcommunity/netbox:${VERSION-v4.3-3.3.0}
depends_on:
- postgres
- redis
- redis-cache
env_file: env/netbox.env
@ -44,22 +43,9 @@ services:
timeout: 3s
interval: 15s
# postgres
postgres:
image: docker.io/postgres:17-alpine
healthcheck:
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
start_period: 20s
timeout: 30s
interval: 10s
retries: 5
env_file: env/postgres.env
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
# 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
@ -74,7 +60,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
@ -87,8 +73,6 @@ services:
volumes:
netbox-media-files:
driver: local
netbox-postgres-data:
driver: local
netbox-redis-cache-data:
driver: local
netbox-redis-data:

1
docker/unit.list Normal file
View File

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

24
env/docker-compose.override.yml vendored Normal file
View File

@ -0,0 +1,24 @@
version: '3.4'
services:
netbox:
ports:
- 8085:8080
volumes:
- /media/nfs/netbox/config:/etc/netbox/config:z,ro
- /media/nfs/netbox/media:/opt/netbox/netbox/media:z,rw
- /media/nfs/netbox/reports:/opt/netbox/netbox/reports:z,rw
- /media/nfs/netbox/scripts:/opt/netbox/netbox/scripts:z,rw
healthcheck:
retries: 15
netbox-worker:
volumes:
- /media/nfs/netbox/config:/etc/netbox/config:z,ro
- /media/nfs/netbox/media:/opt/netbox/netbox/media:z,rw
- /media/nfs/netbox/reports:/opt/netbox/netbox/reports:z,rw
- /media/nfs/netbox/scripts:/opt/netbox/netbox/scripts:z,rw
netbox-housekeeping:
volumes:
- /media/nfs/netbox/config:/etc/netbox/config:z,ro
- /media/nfs/netbox/media:/opt/netbox/netbox/media:z,rw
- /media/nfs/netbox/reports:/opt/netbox/netbox/reports:z,rw
- /media/nfs/netbox/scripts:/opt/netbox/netbox/scripts:z,rw

6
env/netbox.env vendored
View File

@ -1,7 +1,7 @@
CORS_ORIGIN_ALLOW_ALL=True
DB_HOST=postgres
DB_HOST=192.168.0.52
DB_NAME=netbox
DB_PASSWORD=J5brHrAXFLQSif0K
DB_PASSWORD=netbox
DB_USER=netbox
EMAIL_FROM=netbox@bar.com
EMAIL_PASSWORD=
@ -30,5 +30,5 @@ REDIS_PASSWORD=H733Kdjndks81
REDIS_SSL=false
RELEASE_CHECK_URL=https://api.github.com/repos/netbox-community/netbox/releases
SECRET_KEY='r(m)9nLGnz$(_q3N4z1k(EFsMCjjjzx08x9VhNVcfd%6RF#r!6DE@+V5Zk2X'
SKIP_SUPERUSER=true
SKIP_SUPERUSER=false
WEBHOOKS_ENABLED=true

View File

@ -1,7 +1,6 @@
django-auth-ldap==5.1.0
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.4
dulwich==0.22.7
dulwich==0.22.8
python3-saml==1.16.0
--no-binary lxml
--no-binary xmlsec
sentry-sdk[django]==2.20.0
sentry-sdk[django]==2.27.0

View File

@ -3,4 +3,10 @@ LOGGING = {
'disable_existing_loggers': True
}
PLUGINS = [
'netbox.tests.dummy_plugin',
]
ALLOW_TOKEN_RETRIEVAL = True
DEFAULT_PERMISSIONS = {}