forked from mirror/netbox-docker
Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab2a7bc8e5 | ||
|
|
09ba1d3f4e | ||
|
|
f3a78bfd10 | ||
|
|
b81d4fba64 | ||
|
|
2c26000304 | ||
|
|
cb1bc4bde6 | ||
|
|
a75db6add9 | ||
|
|
279a54bef0 | ||
|
|
3f5f4ff8bb | ||
|
|
59922f3423 | ||
|
|
d0f72b5fd3 | ||
|
|
838a56c96f | ||
|
|
6ee26d62e8 | ||
|
|
542300056c | ||
|
|
3c7f90cab8 | ||
|
|
2a15689e5f | ||
|
|
9c6b063408 | ||
|
|
3134057f87 | ||
|
|
56bda20a67 | ||
|
|
51372eed32 | ||
|
|
e33ff85b08 | ||
|
|
279873d20e | ||
|
|
681876681d | ||
|
|
29e66a0a01 | ||
|
|
5d9aa096fd | ||
|
|
84132e4b59 | ||
|
|
da4c1a54a9 | ||
|
|
53418e7d19 | ||
|
|
368d1bca75 | ||
|
|
bb9a7fe542 | ||
|
|
15da2f0642 | ||
|
|
ee2d1dea17 | ||
|
|
402ea6e8d4 | ||
|
|
8017bb72b9 | ||
|
|
33d5230859 | ||
|
|
f0b3a0701c | ||
|
|
1a2957238c | ||
|
|
ac496a16ee | ||
|
|
0c99ff8b56 | ||
|
|
6d25a54d49 |
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -6,7 +6,7 @@ contact_links:
|
|||||||
|
|
||||||
- name: Chat
|
- name: Chat
|
||||||
url: https://join.slack.com/t/netdev-community/shared_invite/zt-mtts8g0n-Sm6Wutn62q_M4OdsaIycrQ
|
url: https://join.slack.com/t/netdev-community/shared_invite/zt-mtts8g0n-Sm6Wutn62q_M4OdsaIycrQ
|
||||||
about: 'Usually the quickest way to seek help with small issues is to join our #netbox-docker Slack channel.'
|
about: "Usually the quickest way to seek help with small issues is to join our #netbox-docker Slack channel."
|
||||||
|
|
||||||
- name: Community Wiki
|
- name: Community Wiki
|
||||||
url: https://github.com/netbox-community/netbox-docker/wiki
|
url: https://github.com/netbox-community/netbox-docker/wiki
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
2
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
@@ -57,7 +57,7 @@ body:
|
|||||||
- type: textarea
|
- type: textarea
|
||||||
id: discussion
|
id: discussion
|
||||||
attributes:
|
attributes:
|
||||||
label: 'Discussion: Benefits and Drawbacks'
|
label: "Discussion: Benefits and Drawbacks"
|
||||||
description: |
|
description: |
|
||||||
Please make your case here:
|
Please make your case here:
|
||||||
- Why do you think this project and the community will benefit from your suggestion?
|
- Why do you think this project and the community will benefit from your suggestion?
|
||||||
|
|||||||
6
.github/pull_request_template.md
vendored
6
.github/pull_request_template.md
vendored
@@ -80,6 +80,6 @@ into the release notes.
|
|||||||
Please put an x into the brackets (like `[x]`) if you've completed that task.
|
Please put an x into the brackets (like `[x]`) if you've completed that task.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
* [ ] I have read the comments and followed the PR template.
|
- [ ] I have read the comments and followed the PR template.
|
||||||
* [ ] I have explained my PR according to the information in the comments.
|
- [ ] I have explained my PR according to the information in the comments.
|
||||||
* [ ] My PR targets the `develop` branch.
|
- [ ] My PR targets the `develop` branch.
|
||||||
|
|||||||
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@@ -26,9 +26,9 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: "3.9"
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
uses: github/super-linter@v6
|
uses: github/super-linter@v7
|
||||||
env:
|
env:
|
||||||
DEFAULT_BRANCH: develop
|
DEFAULT_BRANCH: develop
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '45 5 * * *'
|
- cron: "45 5 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
line-length:
|
line-length:
|
||||||
max: 120
|
max: 160
|
||||||
|
|||||||
@@ -63,17 +63,16 @@ RUN export DEBIAN_FRONTEND=noninteractive \
|
|||||||
openssh-client \
|
openssh-client \
|
||||||
openssl \
|
openssl \
|
||||||
python3 \
|
python3 \
|
||||||
python3-distutils \
|
|
||||||
tini \
|
tini \
|
||||||
&& curl --silent --output /usr/share/keyrings/nginx-keyring.gpg \
|
&& curl --silent --output /etc/apt/keyrings/nginx-keyring.gpg \
|
||||||
https://unit.nginx.org/keys/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/ mantic unit" \
|
&& echo "deb [signed-by=/etc/apt/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ mantic unit" \
|
||||||
> /etc/apt/sources.list.d/unit.list \
|
> /etc/apt/sources.list.d/unit.list \
|
||||||
&& 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.32.0-1~mantic \
|
unit=1.32.1-1~mantic \
|
||||||
unit-python3.11=1.32.0-1~mantic \
|
unit-python3.12=1.32.1-1~mantic \
|
||||||
&& 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
|
||||||
|
|||||||
4
build.sh
4
build.sh
@@ -61,7 +61,7 @@ DOCKERFILE The name of Dockerfile to use.
|
|||||||
${_GREEN}Default:${_CLEAR} Dockerfile
|
${_GREEN}Default:${_CLEAR} Dockerfile
|
||||||
|
|
||||||
DOCKER_FROM The base image to use.
|
DOCKER_FROM The base image to use.
|
||||||
${_GREEN}Default:${_CLEAR} 'ubuntu:23.10'
|
${_GREEN}Default:${_CLEAR} 'ubuntu:24.04'
|
||||||
|
|
||||||
BUILDX_PLATFORMS
|
BUILDX_PLATFORMS
|
||||||
Specifies the platform(s) to build the image for.
|
Specifies the platform(s) to build the image for.
|
||||||
@@ -219,7 +219,7 @@ fi
|
|||||||
# Determining the value for DOCKER_FROM
|
# Determining the value for DOCKER_FROM
|
||||||
###
|
###
|
||||||
if [ -z "$DOCKER_FROM" ]; then
|
if [ -z "$DOCKER_FROM" ]; then
|
||||||
DOCKER_FROM="docker.io/ubuntu:23.10"
|
DOCKER_FROM="docker.io/ubuntu:24.04"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|||||||
@@ -200,10 +200,10 @@ if 'CENSUS_REPORTING_ENABLED' in environ:
|
|||||||
EXEMPT_VIEW_PERMISSIONS = _environ_get_and_map('EXEMPT_VIEW_PERMISSIONS', '', _AS_LIST)
|
EXEMPT_VIEW_PERMISSIONS = _environ_get_and_map('EXEMPT_VIEW_PERMISSIONS', '', _AS_LIST)
|
||||||
|
|
||||||
# HTTP proxies NetBox should use when sending outbound HTTP requests (e.g. for webhooks).
|
# HTTP proxies NetBox should use when sending outbound HTTP requests (e.g. for webhooks).
|
||||||
# HTTP_PROXIES = {
|
HTTP_PROXIES = {
|
||||||
# 'http': 'http://10.10.1.10:3128',
|
'http': environ.get('HTTP_PROXY', None),
|
||||||
# 'https': 'http://10.10.1.10:1080',
|
'https': environ.get('HTTPS_PROXY', None),
|
||||||
# }
|
}
|
||||||
|
|
||||||
# IP addresses recognized as internal to the system. The debugging toolbar will be available only to clients accessing
|
# IP addresses recognized as internal to the system. The debugging toolbar will be available only to clients accessing
|
||||||
# NetBox from an internal IP.
|
# NetBox from an internal IP.
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
redis: &redis
|
redis: &redis
|
||||||
image: docker.io/valkey/valkey:7.2-alpine
|
image: docker.io/valkey/valkey:8.0-alpine
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
services:
|
services:
|
||||||
netbox: &netbox
|
netbox: &netbox
|
||||||
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.1}
|
image: docker.io/netboxcommunity/netbox:${VERSION-v4.1-3.0.0}
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
- redis-cache
|
- redis-cache
|
||||||
env_file: env/netbox.env
|
env_file: env/netbox.env
|
||||||
user: 'unit:root'
|
user: "unit:root"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -f http://localhost:8080/login/ || exit 1
|
test: curl -f http://localhost:8080/login/ || exit 1
|
||||||
start_period: 90s
|
start_period: 90s
|
||||||
@@ -59,13 +59,13 @@ services:
|
|||||||
|
|
||||||
# redis
|
# redis
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/valkey/valkey:7.2-alpine
|
image: docker.io/valkey/valkey:8.0-alpine
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
||||||
- valkey-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
|
- valkey-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
|
||||||
healthcheck: &redis-healthcheck
|
healthcheck: &redis-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
|
||||||
@@ -74,7 +74,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- netbox-redis-data:/data
|
- netbox-redis-data:/data
|
||||||
redis-cache:
|
redis-cache:
|
||||||
image: docker.io/valkey/valkey:7.2-alpine
|
image: docker.io/valkey/valkey:8.0-alpine
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
django-auth-ldap==4.8.0
|
django-auth-ldap==4.8.0
|
||||||
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.3
|
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.4
|
||||||
dulwich==0.22.1
|
dulwich==0.22.1
|
||||||
python3-saml==1.16.0 --no-binary lxml,xmlsec
|
python3-saml==1.16.0 --no-binary lxml,xmlsec
|
||||||
sentry-sdk[django]==2.3.1
|
sentry-sdk[django]==2.12.0
|
||||||
|
|||||||
Reference in New Issue
Block a user