Skip to content

Commit

Permalink
Add CMake to aarch64 base docker images
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquin Anton <[email protected]>
  • Loading branch information
jantonguirao committed Apr 19, 2024
1 parent 35fdbd9 commit c00b3e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/Dockerfile.build.aarch64-linux
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/
PYTHON_V=$(python3 -c "import sys;print(f'{sys.version_info[0]}.{sys.version_info[1]}')") && \
ln -s /usr/bin/python${PYTHON_V}-config /usr/bin/python3-config

RUN CMAKE_VERSION=3.20.1 && \
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
test -e /bin/sh || ln -s /usr/bin/sh /bin/sh && \
chmod +x cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
./cmake-${CMAKE_VERSION}-linux-aarch64.sh --prefix=/usr/local --skip-license && \
rm -rf cmake-${CMAKE_VERSION}-linux-aarch64.sh

ENV PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig

COPY DALI_DEPS_VERSION /tmp
Expand Down
7 changes: 7 additions & 0 deletions docker/Dockerfile.build.aarch64-qnx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
pip install clang==14.0 && pip install libclang==14.0.1 && \
rm -rf /root/.cache/pip/

RUN CMAKE_VERSION=3.20.1 && \
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
test -e /bin/sh || ln -s /usr/bin/sh /bin/sh && \
chmod +x cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
./cmake-${CMAKE_VERSION}-linux-aarch64.sh --prefix=/usr/local --skip-license && \
rm -rf cmake-${CMAKE_VERSION}-linux-aarch64.sh

COPY --from=qnx_cuda_tools /qnx /qnx
RUN mv /qnx/cuda* cuda-qnx-cross.deb

Expand Down

0 comments on commit c00b3e8

Please sign in to comment.