Skip to content

Commit

Permalink
Add necessary packages for ldap support
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Jul 14, 2024
1 parent 310f279 commit 3279450
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ RUN \
libffi-dev \
libxslt-dev \
libxml2-dev \
openldap-dev \
openssl-dev \
postgresql-dev \
python3-dev \
zlib-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
tiff \
postgresql-client \
python3 \
tiff \
uwsgi \
uwsgi-python && \
echo "**** install netbox ****" && \
Expand All @@ -48,6 +49,7 @@ RUN \
pip \
wheel && \
pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
pip install --no-cache-dir django-auth-ldap && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ RUN \
libffi-dev \
libxslt-dev \
libxml2-dev \
openldap-dev \
openssl-dev \
postgresql-dev \
python3-dev \
zlib-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \
tiff \
postgresql-client \
python3 \
tiff \
uwsgi \
uwsgi-python && \
echo "**** install netbox ****" && \
Expand All @@ -48,6 +49,7 @@ RUN \
pip \
wheel && \
pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
pip install --no-cache-dir django-auth-ldap && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \
Expand Down
3 changes: 3 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-netbox-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ ln -sf /config/media /app/netbox/netbox/media

ln -sf /config/configuration.py /app/netbox/netbox/netbox/configuration.py

touch /config/ldap_config.py
ln -sf /config/ldap_config.py /app/netbox/netbox/netbox/ldap_config.py

mv /defaults/uwsgi.ini /app/netbox/netbox/uwsgi.ini > /dev/null 2>&1

# build docs
Expand Down

0 comments on commit 3279450

Please sign in to comment.