diff --git a/jureptool/Dockerfile b/jureptool/Dockerfile new file mode 100644 index 0000000..503ac73 --- /dev/null +++ b/jureptool/Dockerfile @@ -0,0 +1,20 @@ +# author : Matthias Lapu (CEA) +FROM python:3.11-slim + +WORKDIR /jureptool + +COPY requirements.txt . + +RUN pip install --upgrade pip \ + && pip install --no-cache-dir -r requirements.txt + +COPY src src/ + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + fonts-liberation \ + fontconfig && \ + fc-cache -f -v && \ + rm -rf /var/lib/apt/lists/* + +ENTRYPOINT [ "python3", "src/main.py" ] \ No newline at end of file diff --git a/jureptool/README.md b/jureptool/README.md index 382ca22..53126de 100644 --- a/jureptool/README.md +++ b/jureptool/README.md @@ -94,6 +94,21 @@ rm -fr ~/.cache/matplotlib ``` (on MacOs, matplotlib's cache folder is `~/.matplotlib`.) +### Docker + +A Docker image is provided to run Jureptool. Jureptool requires access to the config folder and the file argument. + +You will need to pass these arguments using mounted volumes in Docker. See the example below : +```sh +# pwd = llview/jureptool +docker build -t jureptool . + +docker run \ + -v $(pwd)/configs:/jureptool/configs \ + -v $(pwd)/folder:/jureptool/folder \ + jureptool --configfolder configs folder +``` + ### Expected file diff --git a/jureptool/requirements.txt b/jureptool/requirements.txt new file mode 100644 index 0000000..3aadd7f --- /dev/null +++ b/jureptool/requirements.txt @@ -0,0 +1,7 @@ +matplotlib>=3.5.0,<4.0.0 +numpy +pandas +pyyaml +plotly +cmcrameri +requests \ No newline at end of file