Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions jureptool/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
15 changes: 15 additions & 0 deletions jureptool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions jureptool/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
matplotlib>=3.5.0,<4.0.0
numpy
pandas
pyyaml
plotly
cmcrameri
requests