mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-19 00:16:42 +02:00
commit
bd9bdd0635
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
|||||||
- ./build-latest.sh
|
- ./build-latest.sh
|
||||||
- PRERELEASE=true ./build-latest.sh
|
- PRERELEASE=true ./build-latest.sh
|
||||||
- ./build.sh feature
|
- ./build.sh feature
|
||||||
- ./build.sh develop
|
- ./build.sh main
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- self-hosted
|
- self-hosted
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
- ./build-latest.sh
|
- ./build-latest.sh
|
||||||
- PRERELEASE=true ./build-latest.sh
|
- PRERELEASE=true ./build-latest.sh
|
||||||
- ./build.sh feature
|
- ./build.sh feature
|
||||||
- ./build.sh develop
|
- ./build.sh main
|
||||||
platform:
|
platform:
|
||||||
- linux/amd64,linux/arm64
|
- linux/amd64,linux/arm64
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -71,8 +71,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
|
|||||||
&& apt-get update -qq \
|
&& apt-get update -qq \
|
||||||
&& apt-get install \
|
&& apt-get install \
|
||||||
--yes -qq --no-install-recommends \
|
--yes -qq --no-install-recommends \
|
||||||
unit=1.33.0-1~noble \
|
unit=1.34.0-1~noble \
|
||||||
unit-python3.12=1.33.0-1~noble \
|
unit-python3.12=1.34.0-1~noble \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=builder /opt/netbox/venv /opt/netbox/venv
|
COPY --from=builder /opt/netbox/venv /opt/netbox/venv
|
||||||
|
31
build.sh
31
build.sh
@ -39,8 +39,7 @@ SKIP_GIT If defined, git is not invoked and \${NETBOX_PATH} will not be alter
|
|||||||
|
|
||||||
TAG The version part of the image tag.
|
TAG The version part of the image tag.
|
||||||
${_GREEN}Default:${_CLEAR}
|
${_GREEN}Default:${_CLEAR}
|
||||||
When <branch>=master: latest
|
When <branch>=main: snapshot
|
||||||
When <branch>=develop: snapshot
|
|
||||||
Else: same as <branch>
|
Else: same as <branch>
|
||||||
|
|
||||||
IMAGE_NAMES The names used for the image including the registry
|
IMAGE_NAMES The names used for the image including the registry
|
||||||
@ -104,24 +103,21 @@ GH_ACTION If defined, special 'echo' statements are enabled that set the
|
|||||||
${_GREEN}Default:${_CLEAR} undefined
|
${_GREEN}Default:${_CLEAR} undefined
|
||||||
|
|
||||||
CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
|
CHECK_ONLY Only checks if the build is needed and sets the GH Action output.
|
||||||
|
${_GREEN}Default:${_CLEAR} undefined
|
||||||
|
|
||||||
${_BOLD}Examples:${_CLEAR}
|
${_BOLD}Examples:${_CLEAR}
|
||||||
|
|
||||||
${0} master
|
${0} main
|
||||||
This will fetch the latest 'master' branch, build a Docker Image and tag it
|
This will fetch the latest 'main' branch, build a Docker Image and tag it
|
||||||
'netboxcommunity/netbox:latest'.
|
|
||||||
|
|
||||||
${0} develop
|
|
||||||
This will fetch the latest 'develop' branch, build a Docker Image and tag it
|
|
||||||
'netboxcommunity/netbox:snapshot'.
|
'netboxcommunity/netbox:snapshot'.
|
||||||
|
|
||||||
${0} v2.6.6
|
${0} v4.2.0
|
||||||
This will fetch the 'v2.6.6' tag, build a Docker Image and tag it
|
This will fetch the 'v4.2.0' tag, build a Docker Image and tag it
|
||||||
'netboxcommunity/netbox:v2.6.6' and 'netboxcommunity/netbox:v2.6'.
|
'netboxcommunity/netbox:v4.2.0' and 'netboxcommunity/netbox:v4.2'.
|
||||||
|
|
||||||
${0} develop-2.7
|
${0} feature
|
||||||
This will fetch the 'develop-2.7' branch, build a Docker Image and tag it
|
This will fetch the 'feature' branch, build a Docker Image and tag it
|
||||||
'netboxcommunity/netbox:develop-2.7'.
|
'netboxcommunity/netbox:feature'.
|
||||||
|
|
||||||
SRC_ORG=cimnine ${0} feature-x
|
SRC_ORG=cimnine ${0} feature-x
|
||||||
This will fetch the 'feature-x' branch from https://github.com/cimnine/netbox.git,
|
This will fetch the 'feature-x' branch from https://github.com/cimnine/netbox.git,
|
||||||
@ -259,10 +255,7 @@ DOCKER_REGISTRY="${DOCKER_REGISTRY-docker.io}"
|
|||||||
DOCKER_ORG="${DOCKER_ORG-netboxcommunity}"
|
DOCKER_ORG="${DOCKER_ORG-netboxcommunity}"
|
||||||
DOCKER_REPO="${DOCKER_REPO-netbox}"
|
DOCKER_REPO="${DOCKER_REPO-netbox}"
|
||||||
case "${NETBOX_BRANCH}" in
|
case "${NETBOX_BRANCH}" in
|
||||||
master)
|
main)
|
||||||
TAG="${TAG-latest}"
|
|
||||||
;;
|
|
||||||
develop)
|
|
||||||
TAG="${TAG-snapshot}"
|
TAG="${TAG-snapshot}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -278,7 +271,7 @@ TARGET_DOCKER_TAG_PROJECT="${TARGET_DOCKER_TAG}-${PROJECT_VERSION}"
|
|||||||
|
|
||||||
###
|
###
|
||||||
# composing the additional DOCKER_SHORT_TAG,
|
# composing the additional DOCKER_SHORT_TAG,
|
||||||
# i.e. "v2.6.1" becomes "v2.6",
|
# i.e. "v4.2.0" becomes "v4.2",
|
||||||
# which is only relevant for version tags
|
# which is only relevant for version tags
|
||||||
# Also let "latest" follow the highest version
|
# Also let "latest" follow the highest version
|
||||||
###
|
###
|
||||||
|
@ -9,7 +9,7 @@ services:
|
|||||||
redis-cache:
|
redis-cache:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
env_file: env/netbox.env
|
env_file: env/netbox.env
|
||||||
user: 'unit:root'
|
user: "unit:root"
|
||||||
volumes:
|
volumes:
|
||||||
- ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
|
- ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -39,7 +39,7 @@ services:
|
|||||||
interval: 15s
|
interval: 15s
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: docker.io/postgres:16-alpine
|
image: docker.io/postgres:17-alpine
|
||||||
env_file: env/postgres.env
|
env_file: env/postgres.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER ## $$ because of docker-compose
|
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER ## $$ because of docker-compose
|
||||||
@ -56,7 +56,7 @@ services:
|
|||||||
- valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
|
- valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
|
||||||
env_file: env/redis.env
|
env_file: env/redis.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "[ $$(valkey-cli --pass \"$${REDIS_PASSWORD}\" ping) = 'PONG' ]"
|
test: '[ $$(valkey-cli --pass "$${REDIS_PASSWORD}" ping) = ''PONG'' ]'
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
interval: 1s
|
interval: 1s
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
netbox: &netbox
|
netbox: &netbox
|
||||||
image: docker.io/netboxcommunity/netbox:${VERSION-v4.1-3.0.2}
|
image: docker.io/netboxcommunity/netbox:${VERSION-v4.2-3.1.0}
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
@ -46,7 +46,7 @@ services:
|
|||||||
|
|
||||||
# postgres
|
# postgres
|
||||||
postgres:
|
postgres:
|
||||||
image: docker.io/postgres:16-alpine
|
image: docker.io/postgres:17-alpine
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
|
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
{
|
{
|
||||||
"listeners": {
|
"listeners": {
|
||||||
"0.0.0.0:8080": {
|
"*:8080": {
|
||||||
"pass": "routes/main"
|
"pass": "routes/main",
|
||||||
|
"forwarded": {
|
||||||
|
"client_ip": "X-Forwarded-For",
|
||||||
|
"protocol": "X-Forwarded-Proto",
|
||||||
|
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"[::]:8080": {
|
"*:8081": {
|
||||||
"pass": "routes/main"
|
"pass": "routes/status",
|
||||||
},
|
"forwarded": {
|
||||||
"0.0.0.0:8081": {
|
"client_ip": "X-Forwarded-For",
|
||||||
"pass": "routes/status"
|
"protocol": "X-Forwarded-Proto",
|
||||||
},
|
"source": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
|
||||||
"[::]:8081": {
|
}
|
||||||
"pass": "routes/status"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"routes": {
|
"routes": {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
django-auth-ldap==4.8.0
|
django-auth-ldap==5.1.0
|
||||||
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.4
|
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.4
|
||||||
dulwich==0.22.1
|
dulwich==0.22.7
|
||||||
python3-saml==1.16.0 --no-binary lxml,xmlsec
|
python3-saml==1.16.0 --no-binary lxml,xmlsec
|
||||||
sentry-sdk[django]==2.14.0
|
sentry-sdk[django]==2.19.2
|
||||||
|
@ -4,4 +4,3 @@ LOGGING = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEFAULT_PERMISSIONS = {}
|
DEFAULT_PERMISSIONS = {}
|
||||||
LOGIN_REQUIRED = False
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user