Compare commits

...

11 Commits

Author SHA1 Message Date
55640a7aad Update .github/workflows/build_image.yaml
Some checks failed
ci / docker (push) Failing after 41s
release / Builds new NetBox Docker Images (./build-latest.sh, linux/amd64,linux/arm64) (push) Failing after 14s
release / Builds new NetBox Docker Images (./build.sh develop, linux/amd64,linux/arm64) (push) Failing after 15s
release / Builds new NetBox Docker Images (./build.sh feature, linux/amd64,linux/arm64) (push) Failing after 14s
release / Builds new NetBox Docker Images (PRERELEASE=true ./build-latest.sh, linux/amd64,linux/arm64) (push) Failing after 16s
2024-08-21 18:32:50 -05:00
e9590de870 Update configuration/plugins.py
Some checks failed
ci / docker (push) Failing after 41s
2024-08-21 18:15:00 -05:00
9bf14a6612 Update plugin_requirements.txt
Some checks failed
ci / docker (push) Has been cancelled
2024-08-21 18:14:33 -05:00
2b73a7df5e Update .github/workflows/build_image.yaml
Some checks failed
ci / docker (push) Failing after 4m59s
2024-08-21 11:02:18 -05:00
3c2ac0f7ec Update .github/workflows/build_image.yaml
Some checks failed
ci / docker (push) Failing after 7m10s
2024-08-21 10:42:08 -05:00
dec47084e1 Add docker-compose.override.yml 2024-08-21 10:41:12 -05:00
0e86bbb17e Add Dockerfile-Plugins 2024-08-21 10:40:57 -05:00
725764b856 Add plugin_requirements.txt 2024-08-21 10:40:38 -05:00
28c9b46e73 Update env/netbox.env 2024-08-21 10:32:50 -05:00
26c78c9a02 Update configuration/plugins.py 2024-08-21 10:32:23 -05:00
5cbb16524c Add .github/workflows/build_image.yaml 2024-08-21 10:31:41 -05:00
6 changed files with 66 additions and 8 deletions

31
.github/workflows/build_image.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: ci
on:
push:
branches:
- 'release'
jobs:
docker:
runs-on: ubuntu-22.04
steps:
#-
# name: Set up QEMU
# uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: SeptBlast/docker-login@v1.1.2
with:
login-server: harbor.fisherhome.xyz
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- uses: actions/checkout@v3
- name: Build and push
run: |
docker login --username ${{ secrets.HARBOR_USERNAME }} --password ${{ secrets.HARBOR_PASSWORD }} harbor.fisherhome.xyz
docker build --no-cache ./ -t harbor.fisherhome.xyz/library/netbox:latest
docker push harbor.fisherhome.xyz/library/netbox:latest

9
Dockerfile-Plugins Normal file
View File

@ -0,0 +1,9 @@
FROM netboxcommunity/netbox:latest
COPY ./plugin_requirements.txt /opt/netbox/
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/plugin_requirements.txt
# These lines are only required if your plugin has its own static files.
COPY configuration/configuration.py /etc/netbox/config/configuration.py
COPY configuration/plugins.py /etc/netbox/config/plugins.py
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input

View File

@ -4,7 +4,7 @@
# To learn how to build images with your required plugins
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
# PLUGINS = ["netbox_bgp"]
PLUGINS = ["netbox_bgp","netbox_secrets","netbox_dns"],
# PLUGINS_CONFIG = {
# "netbox_bgp": {

View File

@ -0,0 +1,16 @@
version: '3.4' # This is NOT the version of NetBox! No need to adjust :)
services:
netbox:
image: netbox:latest-plugins
pull_policy: never
ports:
- 8000:8080
build:
context: .
dockerfile: Dockerfile-Plugins
netbox-worker:
image: netbox:latest-plugins
pull_policy: never
netbox-housekeeping:
image: netbox:latest-plugins
pull_policy: never

14
env/netbox.env vendored
View File

@ -1,16 +1,16 @@
CORS_ORIGIN_ALLOW_ALL=True
DB_HOST=postgres
DB_HOST='10.0.100.171'
DB_NAME=netbox
DB_PASSWORD=J5brHrAXFLQSif0K
DB_PASSWORD=QHMKWXHkkDzNMaWt22
DB_USER=netbox
EMAIL_FROM=netbox@bar.com
EMAIL_FROM=netbox@fisherhome.xyz
EMAIL_PASSWORD=
EMAIL_PORT=25
EMAIL_SERVER=localhost
EMAIL_SERVER=postfix.lan.fisherhome.xyz
EMAIL_SSL_CERTFILE=
EMAIL_SSL_KEYFILE=
EMAIL_TIMEOUT=5
EMAIL_USERNAME=netbox
EMAIL_USERNAME=
# EMAIL_USE_SSL and EMAIL_USE_TLS are mutually exclusive, i.e. they can't both be `true`!
EMAIL_USE_SSL=false
EMAIL_USE_TLS=false
@ -26,9 +26,9 @@ REDIS_CACHE_SSL=false
REDIS_DATABASE=0
REDIS_HOST=redis
REDIS_INSECURE_SKIP_TLS_VERIFY=false
REDIS_PASSWORD=H733Kdjndks81
REDIS_PASSWORD=FDFD733Kdjndks81
REDIS_SSL=false
RELEASE_CHECK_URL=https://api.github.com/repos/netbox-community/netbox/releases
SECRET_KEY='r(m)9nLGnz$(_q3N4z1k(EFsMCjjjzx08x9VhNVcfd%6RF#r!6DE@+V5Zk2X'
SKIP_SUPERUSER=true
WEBHOOKS_ENABLED=true
WEBHOOKS_ENABLED=true

2
plugin_requirements.txt Normal file
View File

@ -0,0 +1,2 @@
netbox-secrets
netbox_dns