Update container authored by Rémy Mozul's avatar Rémy Mozul
...@@ -73,20 +73,20 @@ To build an image, use the following content to create a `docker_lmgc90` file. ...@@ -73,20 +73,20 @@ To build an image, use the following content to create a `docker_lmgc90` file.
FROM ubuntu:focal FROM ubuntu:focal
# install packages # install packages
RUN apt-get update -y RUN apt update -y
RUN apt-get upgrade -y RUN apt upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
RUN apt-get install -y git cmake gcc g++ gfortran liblapack-dev swig python3-dev python3-numpy python3-scipy python3-vtk7 python-is-python3 RUN apt install -y git cmake gcc g++ gfortran liblapack-dev swig python3-dev python3-numpy cython3 python-is-python3
RUN apt-get install -y cython3 RUN apt install -y python3-scipy python3-matplotlib python3-pandas python3-vtk7
RUN apt-get install -y libhdf5-dev hdf5-tools python3-h5py RUN apt install -y libhdf5-dev hdf5-tools python3-h5py
# get the sources # get the sources
COPY lmgc90_user_xxxx /root/lmgc90 COPY lmgc90_user_xxxx /root/lmgc90
# build the sources # build the sources
WORKDIR /root/lmgc90/build WORKDIR /root/lmgc90/build
RUN cmake ../ -DWITH_HDF5=ON -DNO_INSTALL=FALSE RUN cmake ../ -DWITH_HDF5=ON -DNO_INSTALL=FALSE -DWITH_OPENMP=True
RUN make && make install RUN make && make install
# clean build and source directories # clean build and source directories
...@@ -103,7 +103,7 @@ Then, next to a `example` directory containing a `gen_sample.py` (with ...@@ -103,7 +103,7 @@ Then, next to a `example` directory containing a `gen_sample.py` (with
NO `visuAvatars` command) and a `command.py`, a docker container NO `visuAvatars` command) and a `command.py`, a docker container
can be run sharing the `example` directory and run a single command with: can be run sharing the `example` directory and run a single command with:
```cmd ```cmd
docker run -it -v $PWD/example:/root/compute lmgc90_user:2020.rc1 python command.py docker run -it -v $PWD/example:/root/compute lmgc90_user:2022.rc1 python command.py
``` ```
To stay in the container for, let's say run python in interactive mode, or run To stay in the container for, let's say run python in interactive mode, or run
several commands, preferably use: several commands, preferably use:
... ...
......