Skip to content

Commit

Permalink
fix(hydro_deploy): exclude from Dockerfile build
Browse files Browse the repository at this point in the history
Should fix the Docker image build, _for realz_.
  • Loading branch information
shadaj committed Dec 21, 2023
1 parent 1ae27de commit f8f8322
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/examples-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: examples-container-build
on:
push:
branches: [main]
pull_request:

jobs:
pre_job:
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM --platform=$BUILDPLATFORM rust:slim-buster AS build

ARG TARGETOS TARGETARCH

RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y pkg-config
RUN apt-get update && apt-get install -y libssl-dev
RUN apt-get update && apt-get install -y git pkg-config

RUN /bin/bash -c "if [ "${TARGETARCH}" == "arm64" ]; then apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu ; else apt-get install -y gcc-x86-64-linux-gnu g++-x86-64-linux-gnu ; fi"

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_dist_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ fi
# The CARGO_NET_GIT_FETCH_WITH_CLI="true" environment variable is a Workaround to an issue similar
# to the one encountered by pytorch in https://github.com/pytorch/pytorch/issues/82174

CARGO_NET_GIT_FETCH_WITH_CLI="true" cargo build --release --all-targets --workspace --exclude hydro_cli --target ${RUST_TARGET}
CARGO_NET_GIT_FETCH_WITH_CLI="true" cargo build --release --all-targets --workspace --exclude hydro_deploy --exclude hydro_cli --exclude hydroflow_plus_cli_integration --exclude hydroflow_plus_test --target ${RUST_TARGET}

0 comments on commit f8f8322

Please sign in to comment.