Compare commits

...

5 commits

Author SHA1 Message Date
Felix Prasse 0af90a3c50
Merge a883a064f6 into 2472368a0a 2026-03-03 23:13:27 +00:00
Tobias Genannt 2472368a0a
Merge pull request #1638 from netbox-community/renovate/sentry-sdk-2.x
Some checks failed
push / Checks syntax of our code (push) Has been cancelled
push / Builds new NetBox Docker Images (./build-latest.sh, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build-latest.sh, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh feature, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh feature, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh main, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh main, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, ubuntu-24.04-arm) (push) Has been cancelled
chore(deps): update dependency sentry-sdk to v2.54.0
2026-03-02 18:54:39 +01:00
renovate[bot] c7bb6e2752
chore(deps): update dependency sentry-sdk to v2.54.0 2026-03-02 17:29:39 +00:00
Tobias Genannt 79c1832f62 Preparation for 4.0.2
Some checks failed
push / Checks syntax of our code (push) Has been cancelled
push / Builds new NetBox Docker Images (./build-latest.sh, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build-latest.sh, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh feature, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh feature, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh main, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (./build.sh main, ubuntu-24.04-arm) (push) Has been cancelled
push / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, ubuntu-24.04) (push) Has been cancelled
push / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, ubuntu-24.04-arm) (push) Has been cancelled
2026-02-27 06:33:35 +01:00
Felix Prasse a883a064f6
Add custom startup hooks 2026-02-25 16:46:15 +01:00
6 changed files with 24 additions and 4 deletions

View file

@ -19,8 +19,15 @@ jobs:
runs-on: ubuntu-24.04
name: Checks syntax of our code
permissions:
# contents permission to clone the repository
contents: read
packages: read
# issues and pull-requests permissions to write results as pull
# request comments. Omit them if you don't need summary comments
issues: write
pull-requests: write
# To report GitHub Actions status checks. Omit if you don't need
# to update commit status
statuses: write
steps:
- uses: actions/checkout@v6

View file

@ -1 +1 @@
4.0.1
4.0.2

View file

@ -1,6 +1,6 @@
services:
netbox: &netbox
image: docker.io/netboxcommunity/netbox:${VERSION-v4.5-4.0.1}
image: docker.io/netboxcommunity/netbox:${VERSION-v4.5-4.0.2}
depends_on:
- postgres
- redis
@ -14,6 +14,7 @@ services:
interval: 15s
volumes:
- ./configuration:/etc/netbox/config:z,ro
- ./hooks:/opt/netbox/hooks:z,ro
- netbox-media-files:/opt/netbox/netbox/media:rw
- netbox-reports-files:/opt/netbox/netbox/reports:rw
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw

View file

@ -1,7 +1,7 @@
#!/bin/bash
# Runs on every start of the NetBox Docker container
# Stop when an error occures
# Stop when an error occurs
set -e
# Allows NetBox to be run as non-root users
@ -58,6 +58,14 @@ else
</opt/netbox/super_user.py
fi
echo "⚙️ Applying user hooks"
shopt -s nullglob
for f in /opt/netbox/hooks/startup.d/*.py; do
./manage.py shell --no-startup --no-imports --interface python \
<"$f"
done
echo "✅ Initialisation is done."
# Launch whatever is passed by docker

View file

@ -0,0 +1,4 @@
# Startup scripts
Add python scripts here that should be executed during startup.
These can be used to provision groups or users for example.

View file

@ -4,4 +4,4 @@ granian[uvloop]==2.7.2
python3-saml==1.16.0
--no-binary lxml
--no-binary xmlsec
sentry-sdk[django]==2.53.0
sentry-sdk[django]==2.54.0