@@ -4,7 +4,7 @@ Create your own pydyna-pre service docker container
4
4
The pydyna-pre service Docker containers can be easily built by following
5
5
these steps.
6
6
7
- Inside this folder, the instructions (i.e. ``Dockerfile.* `` files) for
7
+ Inside this folder, the instructions (i.e. ``Dockerfile `` files) for
8
8
building the pydyna-pre service Docker containers are made available.
9
9
10
10
* ``Dockerfile ``: this file builds the Linux-based Docker image.
@@ -15,20 +15,29 @@ Prerequisites
15
15
* Ensure that ``docker `` is installed in your machine.
16
16
If you do not have ``docker `` available, please refer to the
17
17
`official Docker site <https://www.docker.com >`_.
18
+ Note that the container can also be started on Windows if the Docker Desktop has been installed.
19
+ How to install the Docker Desktop: https://docs.docker.com/desktop/install/windows-install/
18
20
19
- * Download the latest release artifacts for the Linux
20
- Docker container. You can do this as follows:
21
+ * Download the latest release artifacts. You can do this as follows:
21
22
22
23
* Latest Linux artifacts: `linux-binaries.zip <https://github.com/ansys/pydyna/releases/download/v0.2.1/linux-binaries.zip >`_
23
24
24
- * Move these ``.zip `` files to the current location (i.e. ``<repository-root-folder>/docker ``).
25
+ * Move these ``.zip `` files to the current location (i.e. ``<repository-root-folder>/docker/pre ``).
26
+
27
+ Starting the docker container
28
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29
+
30
+ There are two ways to start docker container.
31
+
32
+ 1.bulid image and run container
33
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
25
34
26
35
Building the Docker images
27
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
36
+ ::::::::::::::::::::::::::
28
37
29
38
In order to build your images, follow the next instructions:
30
39
31
- * Locate yourself at ``<repository-root-folder>/docker `` in your terminal.
40
+ * Locate yourself at ``<repository-root-folder>/docker/pre `` in your terminal.
32
41
* Run the following Docker command:
33
42
34
43
.. code :: bash
@@ -52,7 +61,7 @@ In order to build your images, follow the next instructions:
52
61
>>> ...... ...... ............ .............. ......
53
62
54
63
Run the image as a container
55
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
+ ::::::::::::::::::::::::::::
56
65
57
66
* Run the following Docker command:
58
67
@@ -67,4 +76,19 @@ Run the image as a container
67
76
68
77
69
78
>>> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
70
- >>> 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
79
+ >>> 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
80
+
81
+
82
+ 2.Start the container from docker-compose.yml file
83
+ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
84
+
85
+ Make sure the docker compose have been installed on your computer.
86
+ For more information: https://docs.docker.com/compose/install/
87
+
88
+ * Locate yourself at ``<repository-root-folder>/docker/pre `` in your terminal.
89
+ * Run the following Docker command:
90
+
91
+ .. code :: bash
92
+
93
+ docker compose up -d
94
+
0 commit comments