docker

Asked by Rodolfo Araya

Hi,

I want to know how to use the docker imagine of the code.

Thanks in advance,

Rodolfo

Question information

Language:
English Edit question
Status:
Answered
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Adam Ellery (aellery) said :
#1

Hi Rodolfo,

I am afraid that I do not understand your question. Are you referring to the docker image?

To install the docker image on your computer first install docker, then run the command:

docker pull esysescript/esys-escript

This will install the escript docker container onto your computer.

- Adam

Revision history for this message
Rodolfo Araya (raraya1964) said :
#2

Hi Adam,

sorry, my fault!! I installed the docker image on my mac using the command

docker pull esysescript/esys-escript

without any problem.

My question is how to start a session with this image. For instance, the FEM library FeniCS also has a docker image. After installing
the image I use to lunch the image using the command

docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable

in that way, I can "see" my working directory . Which is the right syntaxis for the image of escript?

I apologize if this is a trivial question!!

Thank you for your help.

Rodolfo

Revision history for this message
Adam Ellery (aellery) said :
#3

Hi Rodolfo,

You can launch an escript session using the command:
docker run -ti esysescript/esys-escript run-escript

If you would also like to mount a folder, you can use the command:
docker run -ti -v $(pwd):/app/ esysescript/esys-escript run-escript

Additionally, if you wish to run an escript named rodolfos_project.py, you can use the command:
docker run -ti -v $(pwd):/app/ esysescript/esys-escript run-escript [path to rodolfos_project.py]

Adam

Revision history for this message
Rodolfo Araya (raraya1964) said :
#4

Thanks a lot Adam! it works perfect...May be you can consider to include this in the users docs..

Another question: I'm trying to implement a rate and state law for a friction problem. There is
some examples implemented in esyscript which are close to this problem?

Thanks again!!

Rodolfo

Revision history for this message
Adam Ellery (aellery) said :
#5

Hi Rodolfo,

There are several example problems described in the cookbook and userguide. The closest example to your problem is probably one of the models outlined in section 6.3 and 6.4 of the userguide. It is also possible to input your own equation or system of equations if none of the models in the userguide are suitable for your project.

Adam

Can you help with this problem?

Provide an answer of your own, or ask Rodolfo Araya for more information if necessary.

To post a message you must log in.