Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
0f47842a
Unverified
Commit
0f47842a
authored
Feb 24, 2026
by
Anant Sharma
Committed by
GitHub
Feb 24, 2026
Browse files
ci: switch container-validation-dynamo to runtime target (#6499)
Signed-off-by:
Anant Sharma
<
anants@nvidia.com
>
parent
33b3cb8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
10 deletions
+47
-10
.github/workflows/container-validation-dynamo.yml
.github/workflows/container-validation-dynamo.yml
+5
-5
container/Dockerfile.template
container/Dockerfile.template
+0
-1
container/templates/dynamo_runtime.Dockerfile
container/templates/dynamo_runtime.Dockerfile
+37
-1
container/templates/frontend.Dockerfile
container/templates/frontend.Dockerfile
+5
-3
No files found.
.github/workflows/container-validation-dynamo.yml
View file @
0f47842a
...
...
@@ -88,15 +88,15 @@ jobs:
ECR_HOSTNAME
:
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_DEFAULT_REGION }}.amazonaws.com
run
:
|
CUDA_MAJOR=${CUDA_VERSION%%.*}
IMAGE_TAG_SUFFIX="${{ github.sha }}-dynamo-
dev
-cuda${CUDA_MAJOR}-amd64"
IMAGE_TAG_SUFFIX="${{ github.sha }}-dynamo-
runtime
-cuda${CUDA_MAJOR}-amd64"
echo "image_tag_suffix=${IMAGE_TAG_SUFFIX}" >> $GITHUB_OUTPUT
echo "remote_tag=${ECR_HOSTNAME}/ai-dynamo/dynamo:${IMAGE_TAG_SUFFIX}" >> $GITHUB_OUTPUT
-
name
:
Generate Dockerfile
shell
:
bash
run
:
|
echo "Generating Dockerfile for target:
dev
and framework: dynamo"
echo "Generating Dockerfile for target:
runtime
and framework: dynamo"
python ./container/render.py \
--target=
dev
\
--target=
runtime
\
--framework=dynamo \
--platform=amd64 \
--cuda-version=${{ env.CUDA_VERSION }} \
...
...
@@ -107,7 +107,7 @@ jobs:
with
:
image_tag
:
${{ steps.define_image_tag.outputs.remote_tag }}
framework
:
dynamo
target
:
dev
target
:
runtime
platform
:
amd64
cuda_version
:
${{ env.CUDA_VERSION }}
ci_token
:
${{ secrets.CI_TOKEN }}
...
...
@@ -139,7 +139,7 @@ jobs:
run
:
docker pull ${{ env.IMAGE_TAG }}
-
name
:
Run Rust checks (block-manager + media-ffmpeg + integration tests)
run
:
|
docker run --rm -w /workspace/lib/llm \
docker run --rm
--user root
-w /workspace/lib/llm \
--name ${{ env.CONTAINER_ID }}_rust_checks \
-e SCCACHE_BUCKET=${{ secrets.SCCACHE_S3_BUCKET }} \
-e SCCACHE_REGION=${{ secrets.AWS_DEFAULT_REGION }} \
...
...
container/Dockerfile.template
View file @
0f47842a
...
...
@@ -12,7 +12,6 @@
{% if target == "frontend" %}
{% include "templates/dynamo_base.Dockerfile" %}
{% include "templates/wheel_builder.Dockerfile" %}
{% include "templates/dynamo_runtime.Dockerfile" %}
{% include "templates/frontend.Dockerfile" %}
{% elif target == "runtime" or target == "dev" or target == "local-dev" %}
{% include "templates/dynamo_base.Dockerfile" %}
...
...
container/templates/dynamo_runtime.Dockerfile
View file @
0f47842a
...
...
@@ -30,6 +30,13 @@ ENV NIXL_PREFIX=/opt/nvidia/nvda_nixl \
NIXL_PLUGIN_DIR=/opt/nvidia/nvda_nixl/lib/${ARCH_ALT}-linux-gnu/plugins \
CARGO_TARGET_DIR=/opt/dynamo/target
ENV
LD_LIBRARY_PATH=\
${NIXL_LIB_DIR}:\
${NIXL_PLUGIN_DIR}:\
/usr/local/ucx/lib:\
/usr/local/ucx/lib/ucx:\
${LD_LIBRARY_PATH}
# Copy ucx and nixl libs
COPY
--chown=dynamo: --from=wheel_builder /usr/local/ucx/ /usr/local/ucx/
COPY
--chown=dynamo: --from=wheel_builder ${NIXL_PREFIX}/ ${NIXL_PREFIX}/
...
...
@@ -59,7 +66,16 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
python
${
PYTHON_VERSION
}
-dev
\
python
${
PYTHON_VERSION
}
-venv
&&
\
python
${
PYTHON_VERSION
}
-venv
\
build-essential
\
cmake
\
protobuf-compiler
\
pkg-config
\
clang
\
libclang-dev
\
patchelf
\
git
\
git-lfs
&&
\
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
ln
-sf
/usr/bin/python
${
PYTHON_VERSION
}
/usr/bin/python3
...
...
@@ -106,6 +122,26 @@ RUN --mount=type=cache,target=/home/dynamo/.cache/uv,uid=1000,gid=0,mode=0775 \
uv pip
install
"
$KVBM_WHEEL
"
;
\
fi
# Initialize Git LFS (required for git+https dependencies with LFS artifacts)
RUN
git lfs
install
# Install test and common dependencies
RUN
--mount
=
type
=
bind
,source
=
./container/deps/requirements.txt,target
=
/tmp/requirements.txt
\
--mount
=
type
=
bind
,source
=
./container/deps/requirements.test.txt,target
=
/tmp/requirements.test.txt
\
--mount
=
type
=
cache,target
=
/home/dynamo/.cache/uv,uid
=
1000,gid
=
0,mode
=
0775
\
export
UV_CACHE_DIR
=
/home/dynamo/.cache/uv
UV_GIT_LFS
=
1
UV_HTTP_TIMEOUT
=
300
UV_HTTP_RETRIES
=
5
&&
\
uv pip
install
\
--index-strategy
unsafe-best-match
\
--extra-index-url
https://download.pytorch.org/whl/cu130
\
--requirement
/tmp/requirements.txt
\
--requirement
/tmp/requirements.test.txt
# Copy workspace source code
ARG
WORKSPACE_DIR=/workspace
WORKDIR
${WORKSPACE_DIR}
COPY
--chmod=775 --chown=dynamo:0 ./ ${WORKSPACE_DIR}/
RUN
chmod
g+w
${
WORKSPACE_DIR
}
ARG
DYNAMO_COMMIT_SHA
ENV
DYNAMO_COMMIT_SHA=$DYNAMO_COMMIT_SHA
...
...
container/templates/frontend.Dockerfile
View file @
0f47842a
...
...
@@ -60,9 +60,11 @@ COPY --chown=dynamo: ATTRIBUTION* LICENSE /workspace/
ENV
VIRTUAL_ENV=/opt/dynamo/venv
ENV
PATH="/opt/dynamo/venv/bin:$PATH"
# Copy uv and wheelhouse from runtime stage
COPY
--chown=dynamo: --from=runtime /bin/uv /bin/uvx /bin/
COPY
--chown=dynamo: --from=runtime /opt/dynamo/wheelhouse/ /opt/dynamo/wheelhouse/
# Copy uv from base stage and wheels from wheel_builder (no runtime stage dependency)
COPY
--chown=dynamo: --from=dynamo_base /bin/uv /bin/uvx /bin/
COPY
--chown=dynamo: --from=wheel_builder /opt/dynamo/dist/*.whl /opt/dynamo/wheelhouse/
COPY
--chown=dynamo: --from=wheel_builder /opt/dynamo/dist/nixl/ /opt/dynamo/wheelhouse/nixl/
COPY
--chown=dynamo: --from=wheel_builder /workspace/nixl/build/src/bindings/python/nixl-meta/nixl-*.whl /opt/dynamo/wheelhouse/nixl/
# Create virtual environment
RUN
--mount
=
type
=
cache,target
=
/home/dynamo/.cache/uv,uid
=
1000,gid
=
0,mode
=
0775
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment