Skip to content

Commit ad8faaa

Browse files
authored
Merge pull request #46 from linuxserver/3.17
Rebase to alpine 3.17
2 parents e8c00ca + 205f963 commit ad8faaa

File tree

22 files changed

+60
-42
lines changed

22 files changed

+60
-42
lines changed

Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
24

35
# set version label
46
ARG BUILD_DATE
@@ -19,24 +21,24 @@ RUN \
1921
apk add --no-cache \
2022
libffi \
2123
libldap \
22-
py3-pip \
2324
python3 && \
2425
if [ -z ${LDAP_VERSION+x} ]; then \
25-
LDAP_INSTALL="python-ldap"; \
26-
else \
27-
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
26+
LDAP_VERSION=$(curl -sL https://pypi.python.org/pypi/python-ldap/json |jq -r '. | .info.version'); \
2827
fi && \
29-
pip3 install -U --no-cache-dir pip setuptools wheel && \
30-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ \
28+
python3 -m ensurepip && \
29+
pip3 install -U --no-cache-dir \
30+
pip \
31+
wheel && \
32+
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
3133
cryptography \
32-
${LDAP_INSTALL} && \
34+
python-ldap=="${LDAP_VERSION}" && \
3335
echo "**** cleanup ****" && \
3436
apk del --purge \
3537
build-dependencies && \
3638
rm -rf \
3739
/tmp/* \
38-
/root/.cache \
39-
/root/.cargo
40+
$HOME/.cache \
41+
$HOME/.cargo
4042

4143
# copy local files
4244
COPY root/ /

Dockerfile.aarch64

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17
24

35
# set version label
46
ARG BUILD_DATE
@@ -19,24 +21,24 @@ RUN \
1921
apk add --no-cache \
2022
libffi \
2123
libldap \
22-
py3-pip \
2324
python3 && \
2425
if [ -z ${LDAP_VERSION+x} ]; then \
25-
LDAP_INSTALL="python-ldap"; \
26-
else \
27-
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
26+
LDAP_VERSION=$(curl -sL https://pypi.python.org/pypi/python-ldap/json |jq -r '. | .info.version'); \
2827
fi && \
29-
pip3 install -U --no-cache-dir pip setuptools wheel && \
30-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ \
28+
python3 -m ensurepip && \
29+
pip3 install -U --no-cache-dir \
30+
pip \
31+
wheel && \
32+
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
3133
cryptography \
32-
${LDAP_INSTALL} && \
34+
python-ldap=="${LDAP_VERSION}" && \
3335
echo "**** cleanup ****" && \
3436
apk del --purge \
3537
build-dependencies && \
3638
rm -rf \
3739
/tmp/* \
38-
/root/.cache \
39-
/root/.cargo
40+
$HOME/.cache \
41+
$HOME/.cargo
4042

4143
# copy local files
4244
COPY root/ /

Dockerfile.armhf

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.17
24

35
# set version label
46
ARG BUILD_DATE
@@ -19,24 +21,24 @@ RUN \
1921
apk add --no-cache \
2022
libffi \
2123
libldap \
22-
py3-pip \
2324
python3 && \
2425
if [ -z ${LDAP_VERSION+x} ]; then \
25-
LDAP_INSTALL="python-ldap"; \
26-
else \
27-
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
26+
LDAP_VERSION=$(curl -sL https://pypi.python.org/pypi/python-ldap/json |jq -r '. | .info.version'); \
2827
fi && \
29-
pip3 install -U --no-cache-dir pip setuptools wheel && \
30-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ \
28+
python3 -m ensurepip && \
29+
pip3 install -U --no-cache-dir \
30+
pip \
31+
wheel && \
32+
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
3133
cryptography \
32-
${LDAP_INSTALL} && \
34+
python-ldap=="${LDAP_VERSION}" && \
3335
echo "**** cleanup ****" && \
3436
apk del --purge \
3537
build-dependencies && \
3638
rm -rf \
3739
/tmp/* \
38-
/root/.cache \
39-
/root/.cargo
40+
$HOME/.cache \
41+
$HOME/.cargo
4042

4143
# copy local files
4244
COPY root/ /

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ app_setup_block: |
4343
4444
# changelog
4545
changelogs:
46+
- { date: "19.09.22:", desc: "Rebase to alpine 3.17." }
4647
- { date: "19.09.22:", desc: "Rebase to alpine 3.15." }
4748
- { date: "14.05.21:", desc: "Add linuxserver wheel index." }
4849
- { date: "12.02.21:", desc: "Clean up cargo/rust cache." }

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-ldap-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-ldap-config/dependencies.d/init-config

Whitespace-only changes.

root/etc/cont-init.d/30-config renamed to root/etc/s6-overlay/s6-rc.d/init-ldap-config/run

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
23

34
# generate fernet key for ldap if it doesn't exist
45
if grep -q 'REPLACEWITHFERNETKEY' /app/ldap-backend-app.py; then
@@ -13,7 +14,7 @@ if grep -q 'REPLACEWITHFERNETKEY' /app/ldap-backend-app.py; then
1314
KEY="b'${FERNETKEY}'"
1415
echo "using FERNETKEY from env variable"
1516
fi
16-
17+
1718
sed -i "s/REPLACEWITHFERNETKEY/${KEY}/" /app/ldap-backend-app.py
18-
sed -i "s/REPLACEWITHFERNETKEY/${KEY}/" /app/nginx-ldap-auth-daemon.py
19+
sed -i "s/REPLACEWITHFERNETKEY/${KEY}/" /app/nginx-ldap-auth-daemon.py
1920
fi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-ldap-config/run

root/etc/s6-overlay/s6-rc.d/svc-ldap-app/dependencies.d/init-services

Whitespace-only changes.

0 commit comments

Comments
 (0)