@@ -22,13 +22,20 @@ Prerequisites
22
22
see the `Docker website <https://www.docker.com >`_ for more information.
23
23
24
24
* Download the latest Linux release artifacts for the Linux Docker container:
25
- `linux-binaries.zip <https://github.com/ansys/pydyna/releases/download/v0.2 .1/linux-binaries.zip >`_.
25
+ `linux-binaries.zip <https://github.com/ansys/pydyna/releases/download/v0.3 .1/linux-binaries.zip >`_.
26
26
27
27
* Move these ZIP files to the current location (``<repository-root-folder>/docker ``).
28
28
29
+ Starting the docker container
30
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
+
32
+ There are two ways to start docker container.
33
+
34
+ 1.bulid image and run container
35
+
29
36
30
37
Build the Docker image
31
- ----------------------
38
+ ::::::::::::::::::::::
32
39
33
40
Once all prerequisites are met, perform these steps to build the Docker image:
34
41
@@ -57,21 +64,37 @@ Once all prerequisites are met, perform these steps to build the Docker image:
57
64
58
65
59
66
Run the image as a container
60
- ----------------------------
67
+ ::::::::::::::::::::::::::::
61
68
62
69
Perform these steps to run the image as a container:
63
70
64
71
#. Run this Docker command:
65
72
66
73
.. code :: bash
67
74
68
- docker run -d -p 50051:50051 ghcr.io/ansys/ls-pre .
75
+ docker run -d -p 50051:50051 ghcr.io/ansys/ls-pre
69
76
70
77
#. Check that the image is running successfully.
71
78
72
79
Your output should look similar to this:
73
80
74
81
.. code :: bash
75
82
76
- >>> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
77
- >>> c77ffd67f9fa ghcr.io/ansys/ls-pre " python3 ./linux-bin…" 7 seconds ago Up 7 seconds 0.0.0.0:50051-> 50051/tcp, :::50051-> 50051/tcp hardcore_margulis
83
+ >>> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
84
+ >>> c77ffd67f9fa ghcr.io/ansys/ls-pre " python3 ./linux-bin…" 7 seconds ago Up 7 seconds 0.0.0.0:50051-> 50051/tcp, :::50051-> 50051/tcp hardcore_margulis
85
+
86
+
87
+ 2.Start the container from docker-compose.yml file
88
+
89
+
90
+ Make sure the docker compose have been installed on your computer.
91
+ For more information: https://docs.docker.com/compose/install/
92
+ Ensure that Docker compose is installed on your machine. If you do not have Docker compose installed,
93
+ see the `Docker website <https://docs.docker.com/compose/install/ >`_ for more information.
94
+
95
+ * Locate yourself at ``<repository-root-folder>/docker/pre `` in your terminal.
96
+ * Run this Docker command:
97
+
98
+ .. code :: bash
99
+
100
+ docker compose up -d
0 commit comments