Skip to content

Commit f7efe7b

Browse files
committed
Merge remote-tracking branch 'origin/dockerdoc'
2 parents e87a4ab + 7f127ce commit f7efe7b

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

docker/pre/README.rst

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,20 @@ Prerequisites
2222
see the `Docker website <https://www.docker.com>`_ for more information.
2323

2424
* 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>`_.
2626

2727
* Move these ZIP files to the current location (``<repository-root-folder>/docker``).
2828

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+
2936

3037
Build the Docker image
31-
----------------------
38+
::::::::::::::::::::::
3239

3340
Once all prerequisites are met, perform these steps to build the Docker image:
3441

@@ -57,21 +64,37 @@ Once all prerequisites are met, perform these steps to build the Docker image:
5764
5865
5966
Run the image as a container
60-
----------------------------
67+
::::::::::::::::::::::::::::
6168

6269
Perform these steps to run the image as a container:
6370

6471
#. Run this Docker command:
6572

6673
.. code:: bash
6774
68-
docker run -d -p 50051:50051 ghcr.io/ansys/ls-pre .
75+
docker run -d -p 50051:50051 ghcr.io/ansys/ls-pre
6976
7077
#. Check that the image is running successfully.
7178

7279
Your output should look similar to this:
7380

7481
.. code:: bash
7582
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

docker/solver/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Prerequisites
2525
`Install Linux on Windows with WSL <https://learn.microsoft.com/en-us/windows/wsl/install>`_.
2626

2727
* Download the latest Linux release artifacts for the Linux Docker container:
28-
`mppdyna_docker_centos7.zip <https://github.com/ansys/pydyna/releases/download/v0.2.1/mppdyna_docker_centos7.zip>`_.
28+
`mppdyna_docker_centos7.zip <https://github.com/ansys/pydyna/releases/tag/v0.3.1/mppdyna_docker_centos7.zip>`_.
2929

3030
* Move these ZIP files to a a local directory ``local_image_build_dir``.
3131

@@ -71,7 +71,7 @@ Perform these steps to run the image as a container:
7171

7272
.. code:: bash
7373
74-
docker-compose up
74+
docker compose up
7575
7676
#. Check that the image is running successfully.
7777

0 commit comments

Comments
 (0)