Skip to content

Commit

Permalink
Updated dockerfiles for grpc installation for ppc64le
Browse files Browse the repository at this point in the history
Signed-off-by: Aditi Jadhav <[email protected]>
  • Loading branch information
aditijadhav38 committed Mar 19, 2024
1 parent ae89450 commit 6997698
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-algorithm-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: ./.github/workflows/build-and-publish-images.yaml
with:
component-name: ${{ matrix.component-name }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/ppc64le
dockerfile: ${{ matrix.dockerfile }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-core-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: ./.github/workflows/build-and-publish-images.yaml
with:
component-name: ${{ matrix.component-name }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64,linux/ppc64le
dockerfile: ${{ matrix.dockerfile }}
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
5 changes: 4 additions & 1 deletion cmd/earlystopping/medianstop/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python

RUN if [ "${TARGETARCH}" = "ppc64le" ] || [ "${TARGETARCH}" = "arm64" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
if [ "${TARGETARCH}" = "ppc64le" ]; then \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1; \
fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down
5 changes: 4 additions & 1 deletion cmd/suggestion/hyperband/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TAR

RUN if [ "${TARGETARCH}" = "ppc64le" ] || [ "${TARGETARCH}" = "arm64" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
if [ "${TARGETARCH}" = "ppc64le" ]; then \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1; \
fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down
3 changes: 2 additions & 1 deletion cmd/suggestion/hyperopt/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TAR

RUN if [ "${TARGETARCH}" = "ppc64le" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down
3 changes: 2 additions & 1 deletion cmd/suggestion/nas/darts/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TAR

RUN if [ "${TARGETARCH}" = "ppc64le" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down
3 changes: 2 additions & 1 deletion cmd/suggestion/optuna/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TAR

RUN if [ "${TARGETARCH}" = "ppc64le" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down
3 changes: 2 additions & 1 deletion cmd/suggestion/pbt/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TAR

RUN if [ "${TARGETARCH}" = "ppc64le" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down
3 changes: 2 additions & 1 deletion cmd/suggestion/skopt/v1beta1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TAR

RUN if [ "${TARGETARCH}" = "ppc64le" ]; then \
apt-get -y update && \
apt-get -y install gfortran libopenblas-dev liblapack-dev && \
apt-get -y install gfortran libopenblas-dev liblapack-dev libssl-dev pkg-config gcc g++ && \
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 pip3 install grpcio>=1.41.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi
Expand Down

0 comments on commit 6997698

Please sign in to comment.