1- FROM alpine:3.20 @sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
1+ FROM alpine:3.22 @sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412
22
33# ======
44# alpine
@@ -20,49 +20,48 @@ EXPOSE 8080
2020# Assets sync
2121# ===========
2222
23- ENV JANS_SOURCE_VERSION=408db95b458691c2b307b51fe180f9cc61b4eb95
23+ RUN mkdir -p /app/static/rdbm /app/schema /app/templates/admin-ui
2424
25+ ENV JANS_SOURCE_VERSION=04d297c046dd9d8ef54c0544e6187153b7ed87cf
2526ARG JANS_SETUP_DIR=jans-linux-setup/jans_setup
2627
2728# note that as we're pulling from a monorepo (with multiple project in it)
2829# we are using partial-clone and sparse-checkout to get the assets
2930ARG GIT_CLONE_DEPTH=100
30- RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/janssenproject/jans /tmp/jans \
31- && cd /tmp/jans \
31+ WORKDIR /tmp/jans
32+
33+ RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/janssenproject/jans . \
3234 && git sparse-checkout init --cone \
33- && git checkout ${JANS_SOURCE_VERSION} \
3435 && git sparse-checkout add ${JANS_SETUP_DIR} \
35- && git sparse-checkout add jans-pycloudlib
36-
37- RUN mkdir -p /app/static/rdbm /app/schema
38-
39- # sync static files from linux-setup
40- RUN cd /tmp/jans \
36+ && git sparse-checkout add jans-pycloudlib \
37+ && git checkout ${JANS_SOURCE_VERSION} \
4138 && cp -R ${JANS_SETUP_DIR}/static/rdbm/sql_data_types.json /app/static/rdbm/ \
4239 && cp -R ${JANS_SETUP_DIR}/static/rdbm/ldap_sql_data_type_mapping.json /app/static/rdbm/ \
4340 && cp -R ${JANS_SETUP_DIR}/static/rdbm/opendj_attributes_syntax.json /app/static/rdbm/ \
4441 && cp ${JANS_SETUP_DIR}/schema/jans_schema.json /app/schema/ \
4542 && cp ${JANS_SETUP_DIR}/schema/custom_schema.json /app/schema/ \
4643 && cp ${JANS_SETUP_DIR}/schema/opendj_types.json /app/schema/
4744
48- ENV FLEX_SOURCE_VERSION=8f89839be812eb535929efd4088c8c7825103fca
45+ WORKDIR /tmp/flex
4946
50- RUN mkdir -p /app/templates/admin-ui
47+ ENV FLEX_SOURCE_VERSION=dc807c4e8678477258e730206ab89da412b13594
48+ ARG FLEX_SETUP_DIR=flex-linux-setup/flex_linux_setup
5149
52- RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/GluuFederation/flex /tmp/flex \
53- && cd /tmp/flex \
50+ RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/GluuFederation/flex . \
5451 && git sparse-checkout init --cone \
5552 && git checkout ${FLEX_SOURCE_VERSION} \
5653 && git sparse-checkout add admin-ui \
57- && git sparse-checkout add flex-linux-setup/flex_linux_setup/templates \
58- && cp flex-linux-setup/flex_linux_setup/templates/aui_webhook.ldif /app/templates/admin-ui
54+ && git sparse-checkout add ${FLEX_SETUP_DIR}/templates \
55+ && cp ${FLEX_SETUP_DIR}/templates/*.ldif /app/templates/admin-ui
56+
57+ WORKDIR /
5958
6059# ========
6160# Admin UI
6261# ========
6362
6463ENV ADMIN_UI_VERSION=main
65- ENV GLUU_BUILD_DATE='2024-12-30 17:20 '
64+ ENV GLUU_BUILD_DATE='2025-11-06 18:51 '
6665
6766RUN wget -q https://jenkins.gluu.org/npm/admin_ui/${ADMIN_UI_VERSION}/built/admin-ui-${ADMIN_UI_VERSION}-built.tar.gz -O /tmp/admin-ui.tar.gz \
6867 && mkdir -p /opt/flex/admin-ui \
0 commit comments