|
| 1 | +Create your own pydyna-pre service docker container |
| 2 | +================================================= |
| 3 | + |
| 4 | +The pydyna-pre service Docker containers can be easily built by following |
| 5 | +these steps. |
| 6 | + |
| 7 | +Inside this folder, the instructions (i.e. ``Dockerfile.*`` files) for |
| 8 | +building the pydyna-pre service Docker containers are made available. |
| 9 | + |
| 10 | +* ``Dockerfile``: this file builds the Linux-based Docker image. |
| 11 | + |
| 12 | +Prerequisites |
| 13 | +^^^^^^^^^^^^^ |
| 14 | + |
| 15 | +* Ensure that ``docker`` is installed in your machine. |
| 16 | + If you do not have ``docker`` available, please refer to the |
| 17 | + `official Docker site <https://www.docker.com>`_. |
| 18 | + |
| 19 | +* Download the latest release artifacts for the Linux |
| 20 | + Docker container. You can do this as follows: |
| 21 | + |
| 22 | + * Latest Linux artifacts: `linux-binaries.zip <https://github.com/ansys/pydyna/releases/latest/download/linux-binaries.zip>`_ |
| 23 | + |
| 24 | +* Move these ``.zip`` files to the current location (i.e. ``<repository-root-folder>/docker``). |
| 25 | + |
| 26 | +Building the Docker images |
| 27 | +^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 28 | + |
| 29 | +In order to build your images, follow the next instructions: |
| 30 | + |
| 31 | +* Locate yourself at ``<repository-root-folder>/docker`` in your terminal. |
| 32 | +* Run the following Docker command: |
| 33 | + |
| 34 | + .. code:: bash |
| 35 | +
|
| 36 | + docker build -t ls-pre . |
| 37 | +
|
| 38 | +* Check that the image has been created successfully. You should see an output similar |
| 39 | + to this one when running the following command: |
| 40 | + |
| 41 | + .. code:: bash |
| 42 | +
|
| 43 | + docker images |
| 44 | +
|
| 45 | + >>> REPOSITORY TAG IMAGE ID CREATED SIZE |
| 46 | + >>> ls-pre *******-latest ............ X seconds ago 187MB |
| 47 | + >>> ...... ...... ............ .............. ...... |
0 commit comments