Skip to content

Commit 790b863

Browse files
authored
Update Dockerfile
1 parent 9f6e599 commit 790b863

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.ci/docker/centos-rocm/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ COPY ./common/install_conda.sh install_conda.sh
4848
COPY ./common/common_utils.sh common_utils.sh
4949
RUN bash ./install_conda.sh && rm install_conda.sh common_utils.sh /opt/conda/requirements-ci.txt
5050

51+
# (optional) Install protobuf for ONNX
52+
ARG PROTOBUF
53+
COPY ./common/install_protobuf.sh install_protobuf.sh
54+
RUN if [ -n "${PROTOBUF}" ]; then bash ./install_protobuf.sh; fi
55+
RUN rm install_protobuf.sh
56+
ENV INSTALLED_PROTOBUF ${PROTOBUF}
57+
5158
# (optional) Install vision packages like OpenCV
5259
ARG VISION
5360
COPY ./common/install_vision.sh ./common/cache_vision_models.sh ./common/common_utils.sh ./
@@ -81,6 +88,12 @@ ENV MAGMA_HOME /opt/rocm/magma
8188
ENV LANG en_US.utf8
8289
ENV LC_ALL en_US.utf8
8390

91+
# (optional) Install non-default CMake version
92+
ARG CMAKE_VERSION
93+
COPY ./common/install_cmake.sh install_cmake.sh
94+
RUN if [ -n "${CMAKE_VERSION}" ]; then bash ./install_cmake.sh; fi
95+
RUN rm install_cmake.sh
96+
8497
# (optional) Install non-default Ninja version
8598
ARG NINJA_VERSION
8699
COPY ./common/install_ninja.sh install_ninja.sh

0 commit comments

Comments
 (0)