containerize: update docs to activate env before using container templates (#40493)

This commit is contained in:
Matthew Chan 2023-10-12 23:59:44 -07:00 committed by GitHub
parent 6aa8d76e32
commit 8a0de10f60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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