@@ -26,6 +26,7 @@ make --directory=ci
2626```
2727
2828### Example
29+
2930For example to test inside an ` Alpine ` container:
3031``` sh
3132make alpine_test
@@ -38,6 +39,7 @@ Dockerfile is splitted in several stages.
3839![ docker] ( docs/deps.svg )
3940
4041### Run arm64v8 image on amd64 machine
42+
4143You can build and run ` arm64v8 ` (i.e. ` aarch64 ` ) docker container on a ` amd64 ` host (` x86_64 ` ) by enabling qemu support:
4244``` sh
4345docker run --pull always --rm --privileged multiarch/qemu-user-static --reset -p yes
@@ -51,9 +53,10 @@ docker run --rm -it arm64v8/ubuntu
5153ref: https://github.com/docker-library/official-images#architectures-other-than-amd64
5254
5355### Docker buildx
56+
5457ref: https://docs.docker.com/buildx/working-with-buildx/
5558
56- On you enable qemu support (see above), you can list available platform using:
59+ Once you enable QEMU support (see above), you can list available platform using:
5760``` sh
5861docker buildx ls
5962```
@@ -71,29 +74,33 @@ To control the version of CMake, instead of using the
7174* Install it using the [ pypi package cmake] ( https://pypi.org/project/cmake/ ) (need a python stack)
7275
7376### Install prebuilt
77+
7478The recommended and faster way is to use the prebuilt version:
79+
7580``` Dockerfile
76- # Install CMake 3.21 .4
77- RUN wget "https://cmake.org/files/v3.21 /cmake-3.21 .4-linux-x86_64.sh" \
78- && chmod a+x cmake-3.21 .4-linux-x86_64.sh \
79- && ./cmake-3.21 .4-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
80- && rm cmake-3.21 .4-linux-x86_64.sh
81+ # Install CMake 3.26 .4
82+ RUN wget "https://cmake.org/files/v3.26 /cmake-3.26 .4-linux-x86_64.sh" \
83+ && chmod a+x cmake-3.26 .4-linux-x86_64.sh \
84+ && ./cmake-3.26 .4-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
85+ && rm cmake-3.26 .4-linux-x86_64.sh
8186```
8287
8388** warning** : Since [ CMake 3.20] ( https://cmake.org/files/v3.20/ ) Kitware use a lowercase ` linux ` instead of ` Linux ` .
8489
8590### Build from source
91+
8692To build from source you can use the following snippet:
93+
8794``` Dockerfile
88- # Install CMake 3.21 .4
89- RUN wget "https://cmake.org/files/v3.21 /cmake-3.21 .4.tar.gz" \
90- && tar xzf cmake-3.21 .4.tar.gz \
91- && rm cmake-3.21 .4.tar.gz \
92- && cd cmake-3.21 .4 \
95+ # Install CMake 3.26 .4
96+ RUN wget "https://cmake.org/files/v3.26 /cmake-3.26 .4.tar.gz" \
97+ && tar xzf cmake-3.26 .4.tar.gz \
98+ && rm cmake-3.26 .4.tar.gz \
99+ && cd cmake-3.26 .4 \
93100&& ./bootstrap --prefix=/usr/local/ \
94101&& make \
95102&& make install \
96103&& cd .. \
97- && rm -rf cmake-3.21 .4
104+ && rm -rf cmake-3.26 .4
98105```
99106
0 commit comments