From f41bbb4a8c5d9b9f4f2bc44d986bab189caef061 Mon Sep 17 00:00:00 2001 From: iromli Date: Tue, 31 Dec 2024 04:25:32 +0700 Subject: [PATCH] chore(cloud-native): sync assets to OCI images Signed-off-by: iromli --- docker-admin-ui/Dockerfile | 14 ++++++++------ docker-flex-all-in-one/Dockerfile | 8 +++++--- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docker-admin-ui/Dockerfile b/docker-admin-ui/Dockerfile index 89762e5f1..2336c1a5f 100644 --- a/docker-admin-ui/Dockerfile +++ b/docker-admin-ui/Dockerfile @@ -25,7 +25,8 @@ ARG JANS_SETUP_DIR=jans-linux-setup/jans_setup # note that as we're pulling from a monorepo (with multiple project in it) # we are using partial-clone and sparse-checkout to get the assets -RUN git clone --depth 500 --filter blob:none --no-checkout https://github.com/janssenproject/jans /tmp/jans \ +ARG GIT_CLONE_DEPTH=100 +RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/janssenproject/jans /tmp/jans \ && cd /tmp/jans \ && git sparse-checkout init --cone \ && git checkout ${JANS_SOURCE_VERSION} \ @@ -43,11 +44,11 @@ RUN cd /tmp/jans \ && cp ${JANS_SETUP_DIR}/schema/custom_schema.json /app/schema/ \ && cp ${JANS_SETUP_DIR}/schema/opendj_types.json /app/schema/ -ENV FLEX_SOURCE_VERSION=9982e118d69b3ed8f5fad81870bd30273e634f6f +ENV FLEX_SOURCE_VERSION=0b19c692ac141effd89d52649319b27bf74e7798 RUN mkdir -p /app/templates/admin-ui - RUN git clone --depth 500 --filter blob:none --no-checkout https://github.com/GluuFederation/flex /tmp/flex \ + RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/GluuFederation/flex /tmp/flex \ && cd /tmp/flex \ && git sparse-checkout init --cone \ && git checkout ${FLEX_SOURCE_VERSION} \ @@ -60,7 +61,7 @@ RUN mkdir -p /app/templates/admin-ui # ======== ENV ADMIN_UI_VERSION=main -ENV GLUU_BUILD_DATE='2024-07-10 06:40' +ENV GLUU_BUILD_DATE='2024-12-30 17:20' RUN 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 \ && mkdir -p /opt/flex/admin-ui \ @@ -71,11 +72,12 @@ RUN wget -q https://jenkins.gluu.org/npm/admin_ui/${ADMIN_UI_VERSION}/built/admi # Python # ====== +ARG PIP_TIMEOUT=15 COPY requirements.txt /app/requirements.txt RUN mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.disabled \ && python3 -m ensurepip \ - && pip3 install --no-cache-dir -U pip wheel setuptools \ - && pip3 install --no-cache-dir -r /app/requirements.txt \ + && pip3 install --no-cache-dir -U pip wheel setuptools --timeout ${PIP_TIMEOUT} \ + && pip3 install --no-cache-dir -r /app/requirements.txt --timeout ${PIP_TIMEOUT} \ && pip3 uninstall -y pip wheel # ======= diff --git a/docker-flex-all-in-one/Dockerfile b/docker-flex-all-in-one/Dockerfile index 3b03ddc69..1230024b4 100644 --- a/docker-flex-all-in-one/Dockerfile +++ b/docker-flex-all-in-one/Dockerfile @@ -70,7 +70,8 @@ ENV JANS_SOURCE_VERSION=aa1b2edaa8d7e3413bd57a7bd7cc86206086768b # note that as we're pulling from a monorepo (with multiple project in it) # we are using partial-clone and sparse-checkout to get the assets -RUN git clone --depth 500 --filter blob:none --no-checkout https://github.com/janssenproject/jans /tmp/jans \ +ARG GIT_CLONE_DEPTH=100 +RUN git clone --depth ${GIT_CLONE_DEPTH} --filter blob:none --no-checkout https://github.com/janssenproject/jans /tmp/jans \ && cd /tmp/jans \ && git sparse-checkout init --cone \ && git checkout ${JANS_SOURCE_VERSION} \ @@ -80,11 +81,12 @@ RUN git clone --depth 500 --filter blob:none --no-checkout https://github.com/ja # Python # ------ +ARG PIP_TIMEOUT=15 COPY app/requirements.flex.txt /app/ RUN mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.disabled \ && python3 -m ensurepip \ - && pip3 install --no-cache-dir -U pip wheel setuptools \ - && pip3 install --no-cache-dir -r /app/requirements.flex.txt \ + && pip3 install --no-cache-dir -U pip wheel setuptools --timeout ${PIP_TIMEOUT} \ + && pip3 install --no-cache-dir -r /app/requirements.flex.txt --timeout ${PIP_TIMEOUT} \ && pip3 uninstall -y pip wheel # -------