diff options
author | Brad King <brad.king@kitware.com> | 2020-05-05 18:39:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-05 18:45:53 (GMT) |
commit | 13467f1dbdd049957d4a7ffbb8ef35ab991e50be (patch) | |
tree | 5a0ae3a1ab5f594cd2bf7d44b267458b5cf2dc93 /Utilities | |
parent | 593c3fa1d4253bd876a0426ae56d3bdb3f59c6bb (diff) | |
download | CMake-13467f1dbdd049957d4a7ffbb8ef35ab991e50be.zip CMake-13467f1dbdd049957d4a7ffbb8ef35ab991e50be.tar.gz CMake-13467f1dbdd049957d4a7ffbb8ef35ab991e50be.tar.bz2 |
Utilities/Release: Make README docker examples more readable
Hard-code them for `linux/x86_64` instead of using an `<arch>`
placeholder. Update the prose to mention the platform/arch explicitly.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/Release/README.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Utilities/Release/README.rst b/Utilities/Release/README.rst index de294d1..eb4d6e2 100644 --- a/Utilities/Release/README.rst +++ b/Utilities/Release/README.rst @@ -26,32 +26,32 @@ may use to produce Linux binaries for CMake: Produce an image containing a portable CMake binary package for Linux. Build this image using the CMake source directory as the build context. The resulting image will have an ``/out`` directory containing the package. - For example: + For example, on Linux ``x86_64``: .. code-block:: console $ docker build --tag=cmake:build --network none \ - -f cmake-src/Utilities/Release/linux/$arch/Dockerfile cmake-src + -f cmake-src/Utilities/Release/linux/x86_64/Dockerfile cmake-src $ docker container create --name cmake-build cmake:build $ docker cp cmake-build:/out . - $ ls out/cmake-*-Linux-$arch.* + $ ls out/cmake-*-Linux-x86_64.* * ``linux/<arch>/test/Dockerfile``: Produces a base image with a test environment for packaged CMake binaries. - For example, build the test base image: + For example, on Linux ``x86_64``, one may build the test base image: .. code-block:: console $ docker build --tag=cmake:test-base \ - cmake-src/Utilities/Release/linux/$arch/test + cmake-src/Utilities/Release/linux/x86_64/test Then create a local ``test/Dockerfile`` to prepare an image with both the CMake source tree and the above-built package:: FROM cmake:test-base COPY cmake-src /opt/cmake/src/cmake - ADD out/cmake-<ver>-Linux-<arch>.tar.gz /opt/ - ENV PATH=/opt/cmake-<ver>-Linux-<arch>/bin:$PATH + ADD out/cmake-<ver>-Linux-x86_64.tar.gz /opt/ + ENV PATH=/opt/cmake-<ver>-Linux-x86_64/bin:$PATH Build the test image and run it to drive testing: |