summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-05 18:39:23 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-05 18:45:53 (GMT)
commit13467f1dbdd049957d4a7ffbb8ef35ab991e50be (patch)
tree5a0ae3a1ab5f594cd2bf7d44b267458b5cf2dc93 /Utilities
parent593c3fa1d4253bd876a0426ae56d3bdb3f59c6bb (diff)
downloadCMake-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.rst14
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: