Skip to content

Commit 0f1b0d6

Browse files
docker launch update
1 parent 4bd230a commit 0f1b0d6

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

dockers/dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM python:3.9
22

3-
RUN pip install KratosMultiphysics-all
3+
RUN pip install KratosMultiphysics-all numpy
44
WORKDIR "/model"
5-
ENTRYPOINT [ "python3", "MainKratos.py" ]
5+
ENTRYPOINT [ "python3", "MainKratos.py" ]
6+
7+
# docker build --tag="kratos-run:latest" -t kratos-run .
8+
# docker tag kratos-run:latest fjgarate/kratos-run:latest
9+
# docker push fjgarate/kratos-run:0.0.1

kratos.gid/exec/docker.unix.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ rm -f "$2/$1.err"
1010
rm -f "$2/$1.flavia.dat"
1111

1212
# Run Python using the script MainKratos.py
13-
docker run -v "$2:/model" --rm fjgarate/kratos-run > "$2\\$1.info" 2> "$2\\$1.err"
13+
docker run -v "$2:/model" --rm --name "$1" fjgarate/kratos-run > "$2/$1.info" 2> "$2/$1.err"
14+
# docker run -v "%2:/model" --rm --name "%1" %kratos_docker_image% > "%2\\%1.info" 2> "%2\\%1.err"

0 commit comments

Comments
 (0)