File tree Expand file tree Collapse file tree 8 files changed +27
-7
lines changed
datascience/ubi9-python-3.12
pytorch+llmcompressor/ubi9-python-3.12
rocm-pytorch/ubi9-python-3.12
rocm-tensorflow/ubi9-python-3.12
tensorflow/ubi9-python-3.12 Expand file tree Collapse file tree 8 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -388,12 +388,14 @@ EOF
388388COPY ${DATASCIENCE_SOURCE_CODE}/pylock.toml ./
389389# Copy Elyra dependencies for air-gapped enviroment
390390COPY --chown=1001 ${DATASCIENCE_SOURCE_CODE}/utils ./utils/
391- # Download Elyra Bootstrapper
391+ ### BEGIN Download Elyra Bootstrapper
392392RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
393393 -o ./utils/bootstrapper.py
394394# Prevent Elyra from re-installing the dependencies
395395ENV ELYRA_INSTALL_PACKAGES="false"
396396
397+ ### END Download Elyra Bootstrapper
398+
397399RUN --mount=type=cache,target=/root/.cache/pip /bin/bash <<'EOF'
398400set -Eeuxo pipefail
399401echo "Installing softwares and packages"
Original file line number Diff line number Diff line change @@ -89,12 +89,14 @@ COPY ${MINIMAL_SOURCE_CODE}/pylock.toml ./
8989
9090# Copy Elyra dependencies for air-gapped enviroment
9191COPY --chown=1001 ${MINIMAL_SOURCE_CODE}/utils ./utils/
92- # Download Elyra Bootstrapper
92+ ### BEGIN Download Elyra Bootstrapper
9393RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
9494 -o ./utils/bootstrapper.py
9595# Prevent Elyra from re-installing the dependencies
9696ENV ELYRA_INSTALL_PACKAGES="false"
9797
98+ ### END Download Elyra Bootstrapper
99+
98100RUN /bin/bash <<'EOF'
99101set -Eeuxo pipefail
100102echo "Installing softwares and packages"
Original file line number Diff line number Diff line change @@ -84,12 +84,14 @@ WORKDIR /opt/app-root/bin
8484COPY ${PYTORCH_SOURCE_CODE}/pylock.toml ./
8585# Copy Elyra dependencies for air-gapped enviroment
8686COPY --chown=1001 ${PYTORCH_SOURCE_CODE}/utils ./utils/
87- # Download Elyra Bootstrapper
87+ ### BEGIN Download Elyra Bootstrapper
8888RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
8989 -o ./utils/bootstrapper.py
9090# Prevent Elyra from re-installing the dependencies
9191ENV ELYRA_INSTALL_PACKAGES="false"
9292
93+ ### END Download Elyra Bootstrapper
94+
9395RUN /bin/bash <<'EOF'
9496set -Eeuxo pipefail
9597echo "Installing softwares and packages"
Original file line number Diff line number Diff line change @@ -84,12 +84,14 @@ WORKDIR /opt/app-root/bin
8484COPY ${PYTORCH_SOURCE_CODE}/pylock.toml ./
8585# Copy Elyra dependencies for air-gapped enviroment
8686COPY --chown=1001 ${PYTORCH_SOURCE_CODE}/utils ./utils/
87- # Download Elyra Bootstrapper
87+ ### BEGIN Download Elyra Bootstrapper
8888RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
8989 -o ./utils/bootstrapper.py
9090# Prevent Elyra from re-installing the dependencies
9191ENV ELYRA_INSTALL_PACKAGES="false"
9292
93+ ### END Download Elyra Bootstrapper
94+
9395RUN /bin/bash <<'EOF'
9496set -Eeuxo pipefail
9597echo "Installing softwares and packages"
Original file line number Diff line number Diff line change @@ -82,12 +82,14 @@ WORKDIR /opt/app-root/bin
8282COPY ${PYTORCH_SOURCE_CODE}/pylock.toml ./
8383# Copy Elyra dependencies for air-gapped enviroment
8484COPY --chown=1001 ${PYTORCH_SOURCE_CODE}/utils ./utils/
85- # Download Elyra Bootstrapper
85+ ### BEGIN Download Elyra Bootstrapper
8686RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
8787 -o ./utils/bootstrapper.py
8888# Prevent Elyra from re-installing the dependencies
8989ENV ELYRA_INSTALL_PACKAGES="false"
9090
91+ ### END Download Elyra Bootstrapper
92+
9193# Copy utility script
9294COPY ${PYTORCH_SOURCE_CODE}/de-vendor-torch.sh ./
9395
Original file line number Diff line number Diff line change @@ -83,12 +83,14 @@ WORKDIR /opt/app-root/bin
8383COPY ${TENSORFLOW_SOURCE_CODE}/pylock.toml ./
8484# Copy Elyra dependencies for air-gapped enviroment
8585COPY --chown=1001 ${TENSORFLOW_SOURCE_CODE}/utils ./utils/
86- # Download Elyra Bootstrapper
86+ ### BEGIN Download Elyra Bootstrapper
8787RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
8888 -o ./utils/bootstrapper.py
8989# Prevent Elyra from re-installing the dependencies
9090ENV ELYRA_INSTALL_PACKAGES="false"
9191
92+ ### END Download Elyra Bootstrapper
93+
9294USER 0
9395
9496RUN /bin/bash <<'EOF'
Original file line number Diff line number Diff line change @@ -87,12 +87,14 @@ WORKDIR /opt/app-root/bin
8787COPY ${TENSORFLOW_SOURCE_CODE}/pylock.toml ./
8888# Copy Elyra dependencies for air-gapped enviroment
8989COPY --chown=1001 ${TENSORFLOW_SOURCE_CODE}/utils ./utils/
90- # Download Elyra Bootstrapper
90+ ### BEGIN Download Elyra Bootstrapper
9191RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
9292 -o ./utils/bootstrapper.py
9393# Prevent Elyra from re-installing the dependencies
9494ENV ELYRA_INSTALL_PACKAGES="false"
9595
96+ ### END Download Elyra Bootstrapper
97+
9698USER 0
9799
98100RUN /bin/bash <<'EOF'
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ def main():
6060 RUN ./utils/install_pdf_deps.sh
6161 ENV PATH="/usr/local/texlive/bin/linux:/usr/local/pandoc/bin:$PATH"
6262 """ ),
63+ "Download Elyra Bootstrapper" : textwrap .dedent (r"""
64+ RUN curl -fL https://raw.githubusercontent.com/opendatahub-io/elyra/refs/tags/v4.3.1/elyra/kfp/bootstrapper.py \
65+ -o ./utils/bootstrapper.py
66+ # Prevent Elyra from re-installing the dependencies
67+ ENV ELYRA_INSTALL_PACKAGES="false"
68+ """ ),
6369 }
6470
6571 # sanity check that we don't have any unexpected `### BEGIN`s and `### END`s
You can’t perform that action at this time.
0 commit comments