@@ -27,17 +27,14 @@ Prerequisites
27
27
* Download the latest Linux release artifacts for the ``solver `` Docker container:
28
28
`mppdyna_docker_centos7.zip <https://github.com/ansys/pydyna/releases/download/v0.4.3/mppdyna_docker_centos7.zip >`_.
29
29
30
- * Move this ZIP file to the ``docker/solver `` directory and unzip it in the same directory .
30
+ * Move this ZIP file to the ``docker/solver `` directory.
31
31
32
32
The files in this folder should look similar to this:
33
33
34
34
.. code :: bash
35
35
36
- >>> Dockerfile README.rst do_build docker-compose.yml docker_dir mpi mppdyna_docker_centos7.zip
36
+ >>> Dockerfile README.rst docker-compose.yml mppdyna_docker_centos7.zip
37
37
38
- * Within docker_dir, there is a file called mppdyna. This file is the executable to run. It can be
39
- any executable (SMP, MPP) or revision and branch. To run a given file, the name shall be changed to
40
- mppdyna and copied inside docker_dir.
41
38
42
39
Once all prerequisites are met, you can build the Docker image for the ``solver `` service.
43
40
@@ -52,7 +49,7 @@ To build the Docker image for the ``solver`` service, perform these steps:
52
49
53
50
.. code :: bash
54
51
55
- ./do_build
52
+ docker build -t dyna_solver_v04 .
56
53
57
54
#. Check that the image has been built successfully by running this command:
58
55
@@ -70,15 +67,20 @@ To build the Docker image for the ``solver`` service, perform these steps:
70
67
>>> ...... ...... ............ .............. ......
71
68
72
69
73
- Run the image as a container
74
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70
+ Start the container from a `` docker-compose.yml `` file
71
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75
72
76
- Perform these steps to run the image for the ``solver `` service as a container:
73
+ Alternatively, you can start the container for the ``pre `` service from a
74
+ ``docker-compose.yml `` file.
75
+
76
+ #. Ensure that Docker Compose has been installed on your computer. If Docker Compose is not
77
+ installed, see `Overview of installing Docker Compose <https://docs.docker.com/compose/install/ >`_
78
+ in the Docker documentation.
77
79
78
80
#. In the ``docker-compose.yml `` file, replace ``<license_server_name> `` with the correct
79
81
license server hosting the LS-DYNA license.
80
82
81
- #. Run this Docker command:
83
+ #. In your terminal, go to the `` docker/solver `` directory and run this Docker command:
82
84
83
85
.. code :: bash
84
86
0 commit comments