Created
November 30, 2022 07:08
-
-
Save tobiasge/104c7a45b9b91eb434c5090e5ad4ec31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build . -f Dockerfile-Plugins | |
Sending build context to Docker daemon 15.99MB | |
Step 1/5 : FROM netboxcommunity/netbox:v3.3 | |
v3.3: Pulling from netboxcommunity/netbox | |
e96e057aae67: Already exists | |
d2c598d242dc: Pull complete | |
889d1ebcd2e3: Pull complete | |
853ed47219ec: Pull complete | |
7d9992b8e5ac: Pull complete | |
0abf04ceacdb: Pull complete | |
1204a898a97a: Pull complete | |
8d4307dc3181: Pull complete | |
acce27f051b3: Pull complete | |
44ccf8aaa8ec: Pull complete | |
65c496757fd1: Pull complete | |
4f4fb700ef54: Pull complete | |
543b19a11493: Pull complete | |
Digest: sha256:8df6e6fe6f5fa8376f73087278eabcf20ca274fbde7f4db8c50fc3f5dc8ac2d7 | |
Status: Downloaded newer image for netboxcommunity/netbox:v3.3 | |
---> b60578bf6ebe | |
Step 2/5 : COPY ./plugin_requirements.txt / | |
---> 1668d3666db8 | |
Step 3/5 : RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt | |
---> Running in 74f7fcfe669c | |
Collecting netbox-secretstore | |
Downloading netbox_secretstore-1.3.0-py3-none-any.whl (66 kB) | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.3/66.3 kB 1.3 MB/s eta 0:00:00 | |
Collecting pycryptodome | |
Downloading pycryptodome-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.3 MB) | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 8.9 MB/s eta 0:00:00 | |
Collecting importlib | |
Downloading importlib-1.0.4.zip (7.1 kB) | |
Preparing metadata (setup.py): started | |
Preparing metadata (setup.py): finished with status 'done' | |
Building wheels for collected packages: importlib | |
Building wheel for importlib (setup.py): started | |
Building wheel for importlib (setup.py): finished with status 'done' | |
Created wheel for importlib: filename=importlib-1.0.4-py3-none-any.whl size=5851 sha256=b671c9ca28da949be7cd64ae3eda41bd70836c01fb71146f3a24724a33f174f7 | |
Stored in directory: /root/.cache/pip/wheels/98/57/8f/62ce43e7a5f971cf15686e238761c65fca7be5b86e0caf0dee | |
Successfully built importlib | |
Installing collected packages: importlib, pycryptodome, netbox-secretstore | |
Successfully installed importlib-1.0.4 netbox-secretstore-1.3.0 pycryptodome-3.16.0 | |
Removing intermediate container 74f7fcfe669c | |
---> c33e985ca0ab | |
Step 4/5 : COPY configuration/plugins2.py /etc/netbox/config/plugins2.py | |
---> 622a5084819d | |
Step 5/5 : RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input | |
---> Running in 4117deb2ff26 | |
🧬 loaded config '/etc/netbox/config/configuration.py' | |
🧬 loaded config '/etc/netbox/config/extra.py' | |
🧬 loaded config '/etc/netbox/config/logging.py' | |
🧬 loaded config '/etc/netbox/config/plugins.py' | |
🧬 loaded config '/etc/netbox/config/plugins2.py' | |
2 static files copied to '/opt/netbox/netbox/static', 520 unmodified. | |
Removing intermediate container 4117deb2ff26 | |
---> d097754ed5a9 | |
Successfully built d097754ed5a9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM netboxcommunity/netbox:v3.3 | |
COPY ./plugin_requirements.txt / | |
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt | |
COPY configuration/plugins2.py /etc/netbox/config/plugins2.py | |
RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLUGINS = ["netbox_secretstore"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment