From 13467f1dbdd049957d4a7ffbb8ef35ab991e50be Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 5 May 2020 14:39:23 -0400 Subject: Utilities/Release: Make README docker examples more readable Hard-code them for `linux/x86_64` instead of using an `` placeholder. Update the prose to mention the platform/arch explicitly. --- Utilities/Release/README.rst | 14 +++++++------- 1 file 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//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--Linux-.tar.gz /opt/ - ENV PATH=/opt/cmake--Linux-/bin:$PATH + ADD out/cmake--Linux-x86_64.tar.gz /opt/ + ENV PATH=/opt/cmake--Linux-x86_64/bin:$PATH Build the test image and run it to drive testing: -- cgit v0.12