Initial import from bf-network-r6.opencode — opencode migration
This commit is contained in:
29
docs/nas-vlan20/nautobot-image/Dockerfile
Normal file
29
docs/nas-vlan20/nautobot-image/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
# Nautobot + Golden Config + Nornir, extending the official image in place
|
||||
# (not a satellite/side image). Reconstructed 2026-07-22 from the running
|
||||
# container's actual `docker image history` after the original build context
|
||||
# (referenced in git history as "scratch/nautobot-gc-build") turned out to
|
||||
# never have been committed to this repo -- this file replaces that dangling
|
||||
# reference as the real, versioned source of truth going forward.
|
||||
#
|
||||
# Rebuild: docker build -t bf-nautobot-golden-config:<tag> docs/nas-vlan20/nautobot-image/
|
||||
# then point docs/nas-vlan20/stacks/210-nautobot.yml's 3 `image:` lines at <tag>
|
||||
# and redeploy the Portainer stack (id 203, endpoint 14).
|
||||
# Rollback: point those 3 image lines back at ghcr.io/nautobot/nautobot:3.1.7
|
||||
# (drops the golden-config/nornir plugins; Nautobot core itself is unmodified).
|
||||
FROM ghcr.io/nautobot/nautobot:3.1.7
|
||||
|
||||
USER root
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends procps && rm -rf /var/lib/apt/lists/*
|
||||
RUN pip install --no-cache-dir \
|
||||
nautobot-golden-config \
|
||||
nautobot-plugin-nornir \
|
||||
nornir-netmiko \
|
||||
nornir-napalm \
|
||||
napalm-ros \
|
||||
librouteros \
|
||||
"setuptools<81"
|
||||
|
||||
COPY --chown=nautobot:nautobot nautobot_config.py /opt/nautobot/nautobot_config.py
|
||||
COPY --chown=nautobot:nautobot allnet_sg8316m_driver.py /opt/nautobot/allnet_sg8316m_driver.py
|
||||
|
||||
USER nautobot
|
||||
Reference in New Issue
Block a user