Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
55640a7aad | |||
e9590de870 | |||
9bf14a6612 | |||
2b73a7df5e | |||
3c2ac0f7ec | |||
dec47084e1 | |||
0e86bbb17e | |||
725764b856 | |||
28c9b46e73 | |||
26c78c9a02 | |||
5cbb16524c |
31
.github/workflows/build_image.yaml
vendored
Normal file
31
.github/workflows/build_image.yaml
vendored
Normal 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
9
Dockerfile-Plugins
Normal 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
|
@ -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": {
|
||||
|
16
docker-compose.override.yml
Normal file
16
docker-compose.override.yml
Normal 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
14
env/netbox.env
vendored
@ -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
2
plugin_requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
netbox-secrets
|
||||
netbox_dns
|
Loading…
Reference in New Issue
Block a user