Skip to content

Commit 3279450

Browse files
committed
Add necessary packages for ldap support
1 parent 310f279 commit 3279450

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ RUN \
1818
libffi-dev \
1919
libxslt-dev \
2020
libxml2-dev \
21+
openldap-dev \
2122
openssl-dev \
2223
postgresql-dev \
2324
python3-dev \
2425
zlib-dev && \
2526
echo "**** install runtime packages ****" && \
2627
apk add --no-cache --upgrade \
27-
tiff \
2828
postgresql-client \
2929
python3 \
30+
tiff \
3031
uwsgi \
3132
uwsgi-python && \
3233
echo "**** install netbox ****" && \
@@ -48,6 +49,7 @@ RUN \
4849
pip \
4950
wheel && \
5051
pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
52+
pip install --no-cache-dir django-auth-ldap && \
5153
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
5254
echo "**** cleanup ****" && \
5355
apk del --purge \

Dockerfile.aarch64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ RUN \
1818
libffi-dev \
1919
libxslt-dev \
2020
libxml2-dev \
21+
openldap-dev \
2122
openssl-dev \
2223
postgresql-dev \
2324
python3-dev \
2425
zlib-dev && \
2526
echo "**** install runtime packages ****" && \
2627
apk add --no-cache --upgrade \
27-
tiff \
2828
postgresql-client \
2929
python3 \
30+
tiff \
3031
uwsgi \
3132
uwsgi-python && \
3233
echo "**** install netbox ****" && \
@@ -48,6 +49,7 @@ RUN \
4849
pip \
4950
wheel && \
5051
pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
52+
pip install --no-cache-dir django-auth-ldap && \
5153
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
5254
echo "**** cleanup ****" && \
5355
apk del --purge \

root/etc/s6-overlay/s6-rc.d/init-netbox-config/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ ln -sf /config/media /app/netbox/netbox/media
4747

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

50+
touch /config/ldap_config.py
51+
ln -sf /config/ldap_config.py /app/netbox/netbox/netbox/ldap_config.py
52+
5053
mv /defaults/uwsgi.ini /app/netbox/netbox/uwsgi.ini > /dev/null 2>&1
5154

5255
# build docs

0 commit comments

Comments
 (0)