diff options
author | Matthew Chan <talcite@gmail.com> | 2023-10-12 23:59:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 06:59:44 +0000 |
commit | 8a0de10f60ead1398419257fc2efa37a9bc24b3c (patch) | |
tree | 7c3b8964a19adcad6e5fa1148e24e40df3d8c47b | |
parent | 6aa8d76e3213e03a8b404ea84441dd1ffed21960 (diff) | |
download | spack-8a0de10f60ead1398419257fc2efa37a9bc24b3c.tar.gz spack-8a0de10f60ead1398419257fc2efa37a9bc24b3c.tar.bz2 spack-8a0de10f60ead1398419257fc2efa37a9bc24b3c.tar.xz spack-8a0de10f60ead1398419257fc2efa37a9bc24b3c.zip |
containerize: update docs to activate env before using container templates (#40493)
-rw-r--r-- | lib/spack/docs/containers.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/docs/containers.rst b/lib/spack/docs/containers.rst index 17609d740e..64ca1df926 100644 --- a/lib/spack/docs/containers.rst +++ b/lib/spack/docs/containers.rst @@ -519,6 +519,13 @@ the example below: COPY data /share/myapp/data {% endblock %} +The Dockerfile is generated by running: + +.. code-block:: console + + $ spack -e /opt/environment containerize + +Note that the environment must be active for spack to read the template. The recipe that gets generated contains the two extra instruction that we added in our template extension: .. code-block:: Dockerfile |