summaryrefslogtreecommitdiff
path: root/Utilities/Release/linux/aarch64/Dockerfile
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:31 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:31 +0900
commit7433c268f8cc770bf1cc0593fd15f26763033f81 (patch)
tree14f92d53a3cb823841e34dd18988db13f3ae242e /Utilities/Release/linux/aarch64/Dockerfile
parente2f5ee91b89a80c7801baf3870845d7fe54b3dd7 (diff)
downloadcmake-7433c268f8cc770bf1cc0593fd15f26763033f81.tar.gz
cmake-7433c268f8cc770bf1cc0593fd15f26763033f81.tar.bz2
cmake-7433c268f8cc770bf1cc0593fd15f26763033f81.zip
Imported Upstream version 3.19.3upstream/3.19.3
Diffstat (limited to 'Utilities/Release/linux/aarch64/Dockerfile')
-rw-r--r--Utilities/Release/linux/aarch64/Dockerfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Utilities/Release/linux/aarch64/Dockerfile b/Utilities/Release/linux/aarch64/Dockerfile
new file mode 100644
index 000000000..4077b79de
--- /dev/null
+++ b/Utilities/Release/linux/aarch64/Dockerfile
@@ -0,0 +1,35 @@
+# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+# Produce an image containing a portable CMake binary package for Linux/aarch64.
+# Build using the CMake source directory as the build context.
+# The resulting image will have an '/out' directory containing the package.
+
+# Keep this in sync with the `.gitlab-ci.yml` `release_linux` image.
+ARG FROM_IMAGE_NAME=kitware/cmake:build-linux-aarch64-deps-2020-12-21
+ARG FROM_IMAGE_DIGEST=@sha256:0bd7dfe4e45593b04e39cd21e44011034610cfd376900558c5ef959bb1af15af
+ARG FROM_IMAGE=$FROM_IMAGE_NAME$FROM_IMAGE_DIGEST
+FROM $FROM_IMAGE
+
+COPY . /opt/cmake/src/cmake
+
+ARG TEST=true
+
+RUN : \
+ && mkdir -p /opt/cmake/src/cmake-build \
+ && cd /opt/cmake/src/cmake-build \
+ && cp ../cmake/Utilities/Release/linux/aarch64/cache.txt CMakeCache.txt \
+ && source /opt/rh/devtoolset-7/enable \
+ && set -x \
+ && ../cmake/bootstrap --parallel=$(nproc) --docdir=doc/cmake \
+ && nice make -j $(nproc) \
+ && if $TEST; then \
+ # Run tests that require the full build tree.
+ bin/ctest --output-on-failure -j 8 -R '^(CMake\.|CMakeLib\.|CMakeServerLib\.|RunCMake\.ctest_memcheck)'; \
+ fi \
+ && bin/cpack -G TGZ \
+ && bin/cpack -G STGZ \
+ && set +x \
+ && mkdir /out \
+ && mv cmake-*-Linux-aarch64.* /out \
+ && :