Compare commits

...

4 commits

Author SHA1 Message Date
Felix Prasse ba15afdf5a
Merge a883a064f6 into c861c0bcc5 2026-03-05 13:12:16 +00:00
Tobias Genannt c861c0bcc5
Merge pull request #1640 from netbox-community/renovate/docker-setup-buildx-action-4.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 docker/setup-buildx-action action to v4
2026-03-05 12:07:11 +01:00
renovate[bot] 4ffeae5903
chore(deps): update docker/setup-buildx-action action to v4 2026-03-05 10:43:26 +00:00
Felix Prasse a883a064f6
Add custom startup hooks 2026-02-25 16:46:15 +01:00
5 changed files with 16 additions and 3 deletions

View file

@ -84,7 +84,7 @@ jobs:
uses: actions/checkout@v6
- id: buildx-setup
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
- id: arm-install-skopeo
name: Install 'skopeo' on ARM64
if: matrix.os == 'ubuntu-24.04-arm'

View file

@ -55,7 +55,7 @@ jobs:
if: steps.check-build-needed.outputs.skipped != 'true'
- id: buildx-setup
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
with:
version: "lab:latest"
driver: cloud

View file

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