Unverified Commit 6ea08301 authored by Anant Sharma's avatar Anant Sharma Committed by GitHub
Browse files

fix: copy workspace as part of ci-min stage (#1291)

parent 2f8da9ad
...@@ -325,6 +325,9 @@ COPY --from=wheel_builder /opt/nvidia/nvda_nixl /opt/nvidia/nvda_nixl ...@@ -325,6 +325,9 @@ COPY --from=wheel_builder /opt/nvidia/nvda_nixl /opt/nvidia/nvda_nixl
# Copy Cargo cache to avoid re-downloading dependencies # Copy Cargo cache to avoid re-downloading dependencies
COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME
# Copy rest of the code
COPY . /workspace
# Build C bindings, creates lib/bindings/c/include # Build C bindings, creates lib/bindings/c/include
RUN cd /workspace/lib/bindings/c && cargo build --release --locked RUN cd /workspace/lib/bindings/c && cargo build --release --locked
...@@ -365,8 +368,6 @@ ARG GENAI_PERF_VERSION ...@@ -365,8 +368,6 @@ ARG GENAI_PERF_VERSION
# Install genai-perf for benchmarking # Install genai-perf for benchmarking
RUN uv pip install genai-perf==$GENAI_PERF_VERSION RUN uv pip install genai-perf==$GENAI_PERF_VERSION
COPY . /workspace
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"] ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
CMD [] CMD []
......
...@@ -300,6 +300,9 @@ COPY --from=wheel_builder /workspace /workspace ...@@ -300,6 +300,9 @@ COPY --from=wheel_builder /workspace /workspace
# Copy Cargo cache to avoid re-downloading dependencies # Copy Cargo cache to avoid re-downloading dependencies
COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME
# Copy rest of the code
COPY . /workspace
# Build C bindings, creates lib/bindings/c/include # Build C bindings, creates lib/bindings/c/include
RUN cd /workspace/lib/bindings/c && cargo build --release --locked RUN cd /workspace/lib/bindings/c && cargo build --release --locked
......
...@@ -403,6 +403,9 @@ COPY --from=wheel_builder /opt/nvidia/nvda_nixl /opt/nvidia/nvda_nixl ...@@ -403,6 +403,9 @@ COPY --from=wheel_builder /opt/nvidia/nvda_nixl /opt/nvidia/nvda_nixl
# Copy Cargo cache to avoid re-downloading dependencies # Copy Cargo cache to avoid re-downloading dependencies
COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME COPY --from=wheel_builder $CARGO_HOME $CARGO_HOME
# Copy rest of the code
COPY . /workspace
# Build C bindings, creates lib/bindings/c/include # Build C bindings, creates lib/bindings/c/include
# #
# TODO: In theory the 'cargo build' in earlier stage covers this, we "just" need to copy the # TODO: In theory the 'cargo build' in earlier stage covers this, we "just" need to copy the
...@@ -447,8 +450,6 @@ ARG GENAI_PERF_VERSION ...@@ -447,8 +450,6 @@ ARG GENAI_PERF_VERSION
# Install genai-perf for benchmarking # Install genai-perf for benchmarking
RUN uv pip install genai-perf==$GENAI_PERF_VERSION RUN uv pip install genai-perf==$GENAI_PERF_VERSION
COPY . /workspace
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"] ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
CMD [] CMD []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment