Compare commits

...

4 commits

Author SHA1 Message Date
Felix Prasse c474fe5b28
Merge a883a064f6 into e77efce5d4 2026-03-04 22:22:13 +01:00
Tobias Genannt e77efce5d4
Merge pull request #1639 from netbox-community/renovate/docker-login-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/login-action action to v4
2026-03-04 12:08:57 +01:00
renovate[bot] c6d79fde21
chore(deps): update docker/login-action action to v4 2026-03-04 10:45:14 +00:00
Felix Prasse a883a064f6
Add custom startup hooks 2026-02-25 16:46:15 +01:00
4 changed files with 17 additions and 4 deletions

View file

@ -47,7 +47,7 @@ jobs:
# docker.io
- id: docker-io-login
name: Login to docker.io
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: docker.io
username: ${{ secrets.dockerhub_username }}
@ -64,7 +64,7 @@ jobs:
# quay.io
- id: quay-io-login
name: Login to Quay.io
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: quay.io
username: ${{ secrets.quayio_username }}
@ -73,7 +73,7 @@ jobs:
# ghcr.io
- id: ghcr-io-login
name: Login to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}

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.