ArnesSI / netbox-inventory

Manage your hardware inventory in NetBox
MIT License
215 stars 21 forks source link

git not included in netbox docker #136

Closed ytjohn closed 11 months ago

ytjohn commented 1 year ago

This is more of a note, potential doc update.

EDIT: I should clarify this only impacts if you're installing the development version direct from git.

During an setup of netbox 3.6.4 in docker, I got an error that a git was not installed.

I worked around this by adding a line in Dockerfile-Plugins

FROM netboxcommunity/netbox:latest
RUN apt update; apt install -y git

I tried to figure out when this went away. I found two commits of interest:

June 10th, 2022 they moved from arch to debian which explicitly drops the git package.

Then in July 19th, 2022 they moved from debian to ubuntu.

I tested debian:bullseye-slim, debian:11-slim, and ubuntu:22.04 - none have git installed.

A cleaner way to do this (less bloat) is to update your local copy of Dockerfile and add git to the apt-get install list. The downside is that this fill will get overwritten next time you pull from the git repo.

matejv commented 11 months ago

Thank you. I've updated the README to use archive URLs instead of git.