Skip to content

Commit c00b3e8

Browse files
committed
Add CMake to aarch64 base docker images
Signed-off-by: Joaquin Anton <janton@nvidia.com>
1 parent 35fdbd9 commit c00b3e8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docker/Dockerfile.build.aarch64-linux

+7
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/
5959
PYTHON_V=$(python3 -c "import sys;print(f'{sys.version_info[0]}.{sys.version_info[1]}')") && \
6060
ln -s /usr/bin/python${PYTHON_V}-config /usr/bin/python3-config
6161

62+
RUN CMAKE_VERSION=3.20.1 && \
63+
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
64+
test -e /bin/sh || ln -s /usr/bin/sh /bin/sh && \
65+
chmod +x cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
66+
./cmake-${CMAKE_VERSION}-linux-aarch64.sh --prefix=/usr/local --skip-license && \
67+
rm -rf cmake-${CMAKE_VERSION}-linux-aarch64.sh
68+
6269
ENV PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig
6370

6471
COPY DALI_DEPS_VERSION /tmp

docker/Dockerfile.build.aarch64-qnx

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3030
pip install clang==14.0 && pip install libclang==14.0.1 && \
3131
rm -rf /root/.cache/pip/
3232

33+
RUN CMAKE_VERSION=3.20.1 && \
34+
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
35+
test -e /bin/sh || ln -s /usr/bin/sh /bin/sh && \
36+
chmod +x cmake-${CMAKE_VERSION}-linux-aarch64.sh && \
37+
./cmake-${CMAKE_VERSION}-linux-aarch64.sh --prefix=/usr/local --skip-license && \
38+
rm -rf cmake-${CMAKE_VERSION}-linux-aarch64.sh
39+
3340
COPY --from=qnx_cuda_tools /qnx /qnx
3441
RUN mv /qnx/cuda* cuda-qnx-cross.deb
3542

0 commit comments

Comments
 (0)