Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation steps not applicable for Netbox Docker setup #23

Open
eberbrenes opened this issue Mar 7, 2022 · 2 comments
Open

Installation steps not applicable for Netbox Docker setup #23

eberbrenes opened this issue Mar 7, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@eberbrenes
Copy link

upgrade.sh will fail with dependencies error when running netbox-docker (gcc related). Also no systemctl is included on Alpine docker image from main build https://github.com/netbox-community/netbox-docker

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
sys.argv ['/tmp/pip-install-8azecwv0/ruamel-yaml-clib_499f18dc73c743ea86e47acc6c498bf1/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-249cq7qa']
test compiling /tmp/tmp_ruamel_9j_rnwv4/test_ruamel_yaml.c -> test_ruamel_yaml link error /tmp/tmp_ruamel_9j_rnwv4/test_ruamel_yaml.c
Exception: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

@YWatchman YWatchman added bug Something isn't working help wanted Extra attention is needed labels Mar 15, 2022
@aodix
Copy link

aodix commented Apr 29, 2022

in you docker compose you need to add the command to trigger the update on the worker.
Afterward you tables should be generated.
Small example for docker-compose.override.yml

version: '3.4'
netbox-worker:
command:
- /opt/netbox/venv/bin/python
- /opt/netbox/netbox/manage.py
- rqworker

@a-belhadj
Copy link
Contributor

It works fine for me, here is my Dockerfile:

FROM netboxcommunity/netbox:latest-2.2.0
RUN /opt/netbox/venv/bin/python3 -m pip install --upgrade pip setuptools

#netbox_ddns
RUN apt update 
RUN apt install git --yes
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location git+https://github.com/sjm-steffann/netbox-ddns@31c511b3e1e8f4939c1aba424bdc8194eaa1b85a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants