containerize: update docs to activate env before using container templates (#40493)
This commit is contained in:
parent
6aa8d76e32
commit
8a0de10f60
@ -519,6 +519,13 @@ the example below:
|
|||||||
COPY data /share/myapp/data
|
COPY data /share/myapp/data
|
||||||
{% endblock %}
|
{% 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:
|
The recipe that gets generated contains the two extra instruction that we added in our template extension:
|
||||||
|
|
||||||
.. code-block:: Dockerfile
|
.. code-block:: Dockerfile
|
||||||
|
Loading…
Reference in New Issue
Block a user