Skip to content

Commit 0f2e3fe

Browse files
committed
RHAIENG-1965: chore(cli): introduce Download Elyra Bootstrapper template for runtime images (opendatahub-io#2685)
1 parent 602fe25 commit 0f2e3fe

File tree

8 files changed

+27
-7
lines changed

8 files changed

+27
-7
lines changed

runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,14 @@ EOF
388388
COPY ${DATASCIENCE_SOURCE_CODE}/pylock.toml ./
389389
# Copy Elyra dependencies for air-gapped enviroment
390390
COPY --chown=1001 ${DATASCIENCE_SOURCE_CODE}/utils ./utils/
391-
# Download Elyra Bootstrapper
391+
### BEGIN Download Elyra Bootstrapper
392392
RUN 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
395395
ENV ELYRA_INSTALL_PACKAGES="false"
396396

397+
### END Download Elyra Bootstrapper
398+
397399
RUN --mount=type=cache,target=/root/.cache/pip /bin/bash <<'EOF'
398400
set -Eeuxo pipefail
399401
echo "Installing softwares and packages"

runtimes/minimal/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ COPY ${MINIMAL_SOURCE_CODE}/pylock.toml ./
8989

9090
# Copy Elyra dependencies for air-gapped enviroment
9191
COPY --chown=1001 ${MINIMAL_SOURCE_CODE}/utils ./utils/
92-
# Download Elyra Bootstrapper
92+
### BEGIN Download Elyra Bootstrapper
9393
RUN 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
9696
ENV ELYRA_INSTALL_PACKAGES="false"
9797

98+
### END Download Elyra Bootstrapper
99+
98100
RUN /bin/bash <<'EOF'
99101
set -Eeuxo pipefail
100102
echo "Installing softwares and packages"

runtimes/pytorch+llmcompressor/ubi9-python-3.12/Dockerfile.cuda

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ WORKDIR /opt/app-root/bin
8484
COPY ${PYTORCH_SOURCE_CODE}/pylock.toml ./
8585
# Copy Elyra dependencies for air-gapped enviroment
8686
COPY --chown=1001 ${PYTORCH_SOURCE_CODE}/utils ./utils/
87-
# Download Elyra Bootstrapper
87+
### BEGIN Download Elyra Bootstrapper
8888
RUN 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
9191
ENV ELYRA_INSTALL_PACKAGES="false"
9292

93+
### END Download Elyra Bootstrapper
94+
9395
RUN /bin/bash <<'EOF'
9496
set -Eeuxo pipefail
9597
echo "Installing softwares and packages"

runtimes/pytorch/ubi9-python-3.12/Dockerfile.cuda

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ WORKDIR /opt/app-root/bin
8484
COPY ${PYTORCH_SOURCE_CODE}/pylock.toml ./
8585
# Copy Elyra dependencies for air-gapped enviroment
8686
COPY --chown=1001 ${PYTORCH_SOURCE_CODE}/utils ./utils/
87-
# Download Elyra Bootstrapper
87+
### BEGIN Download Elyra Bootstrapper
8888
RUN 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
9191
ENV ELYRA_INSTALL_PACKAGES="false"
9292

93+
### END Download Elyra Bootstrapper
94+
9395
RUN /bin/bash <<'EOF'
9496
set -Eeuxo pipefail
9597
echo "Installing softwares and packages"

runtimes/rocm-pytorch/ubi9-python-3.12/Dockerfile.rocm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ WORKDIR /opt/app-root/bin
8282
COPY ${PYTORCH_SOURCE_CODE}/pylock.toml ./
8383
# Copy Elyra dependencies for air-gapped enviroment
8484
COPY --chown=1001 ${PYTORCH_SOURCE_CODE}/utils ./utils/
85-
# Download Elyra Bootstrapper
85+
### BEGIN Download Elyra Bootstrapper
8686
RUN 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
8989
ENV ELYRA_INSTALL_PACKAGES="false"
9090

91+
### END Download Elyra Bootstrapper
92+
9193
# Copy utility script
9294
COPY ${PYTORCH_SOURCE_CODE}/de-vendor-torch.sh ./
9395

runtimes/rocm-tensorflow/ubi9-python-3.12/Dockerfile.rocm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ WORKDIR /opt/app-root/bin
8383
COPY ${TENSORFLOW_SOURCE_CODE}/pylock.toml ./
8484
# Copy Elyra dependencies for air-gapped enviroment
8585
COPY --chown=1001 ${TENSORFLOW_SOURCE_CODE}/utils ./utils/
86-
# Download Elyra Bootstrapper
86+
### BEGIN Download Elyra Bootstrapper
8787
RUN 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
9090
ENV ELYRA_INSTALL_PACKAGES="false"
9191

92+
### END Download Elyra Bootstrapper
93+
9294
USER 0
9395

9496
RUN /bin/bash <<'EOF'

runtimes/tensorflow/ubi9-python-3.12/Dockerfile.cuda

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,14 @@ WORKDIR /opt/app-root/bin
8787
COPY ${TENSORFLOW_SOURCE_CODE}/pylock.toml ./
8888
# Copy Elyra dependencies for air-gapped enviroment
8989
COPY --chown=1001 ${TENSORFLOW_SOURCE_CODE}/utils ./utils/
90-
# Download Elyra Bootstrapper
90+
### BEGIN Download Elyra Bootstrapper
9191
RUN 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
9494
ENV ELYRA_INSTALL_PACKAGES="false"
9595

96+
### END Download Elyra Bootstrapper
97+
9698
USER 0
9799

98100
RUN /bin/bash <<'EOF'

scripts/dockerfile_fragments.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)