File tree Expand file tree Collapse file tree 22 files changed +60
-42
lines changed
init-config-end/dependencies.d Expand file tree Collapse file tree 22 files changed +60
-42
lines changed Original file line number Diff line number Diff line change 1
- FROM ghcr.io/linuxserver/baseimage-alpine:3.15
1
+ # syntax=docker/dockerfile:1
2
+
3
+ FROM ghcr.io/linuxserver/baseimage-alpine:3.17
2
4
3
5
# set version label
4
6
ARG BUILD_DATE
@@ -19,24 +21,24 @@ RUN \
19
21
apk add --no-cache \
20
22
libffi \
21
23
libldap \
22
- py3-pip \
23
24
python3 && \
24
25
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' ); \
28
27
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/ \
31
33
cryptography \
32
- ${LDAP_INSTALL} && \
34
+ python-ldap== "${LDAP_VERSION}" && \
33
35
echo "**** cleanup ****" && \
34
36
apk del --purge \
35
37
build-dependencies && \
36
38
rm -rf \
37
39
/tmp/* \
38
- /root /.cache \
39
- /root /.cargo
40
+ $HOME /.cache \
41
+ $HOME /.cargo
40
42
41
43
# copy local files
42
44
COPY root/ /
Original file line number Diff line number Diff line change 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
2
4
3
5
# set version label
4
6
ARG BUILD_DATE
@@ -19,24 +21,24 @@ RUN \
19
21
apk add --no-cache \
20
22
libffi \
21
23
libldap \
22
- py3-pip \
23
24
python3 && \
24
25
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'); \
28
27
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/ \
31
33
cryptography \
32
- ${LDAP_INSTALL} && \
34
+ python-ldap=="${LDAP_VERSION}" && \
33
35
echo "**** cleanup ****" && \
34
36
apk del --purge \
35
37
build-dependencies && \
36
38
rm -rf \
37
39
/tmp/* \
38
- /root /.cache \
39
- /root /.cargo
40
+ $HOME /.cache \
41
+ $HOME /.cargo
40
42
41
43
# copy local files
42
44
COPY root/ /
Original file line number Diff line number Diff line change 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
2
4
3
5
# set version label
4
6
ARG BUILD_DATE
@@ -19,24 +21,24 @@ RUN \
19
21
apk add --no-cache \
20
22
libffi \
21
23
libldap \
22
- py3-pip \
23
24
python3 && \
24
25
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'); \
28
27
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/ \
31
33
cryptography \
32
- ${LDAP_INSTALL} && \
34
+ python-ldap=="${LDAP_VERSION}" && \
33
35
echo "**** cleanup ****" && \
34
36
apk del --purge \
35
37
build-dependencies && \
36
38
rm -rf \
37
39
/tmp/* \
38
- /root /.cache \
39
- /root /.cargo
40
+ $HOME /.cache \
41
+ $HOME /.cargo
40
42
41
43
# copy local files
42
44
COPY root/ /
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ app_setup_block: |
43
43
44
44
# changelog
45
45
changelogs :
46
+ - { date: "19.09.22:", desc: "Rebase to alpine 3.17." }
46
47
- { date: "19.09.22:", desc: "Rebase to alpine 3.15." }
47
48
- { date: "14.05.21:", desc: "Add linuxserver wheel index." }
48
49
- { date: "12.02.21:", desc: "Clean up cargo/rust cache." }
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
+ # shellcheck shell=bash
2
3
3
4
# generate fernet key for ldap if it doesn't exist
4
5
if grep -q 'REPLACEWITHFERNETKEY' /app/ldap-backend-app.py; then
@@ -13,7 +14,7 @@ if grep -q 'REPLACEWITHFERNETKEY' /app/ldap-backend-app.py; then
13
14
KEY="b'${FERNETKEY}'"
14
15
echo "using FERNETKEY from env variable"
15
16
fi
16
-
17
+
17
18
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
19
20
fi
Original file line number Diff line number Diff line change
1
+ oneshot
Original file line number Diff line number Diff line change
1
+ /etc/s6-overlay/s6-rc.d/init-ldap-config/run
You can’t perform that action at this time.
0 commit comments