From 04ad3ced03348e54b76787e88a0e63feb48fe918 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Sun, 19 Jan 2025 13:00:36 +0100 Subject: [PATCH] added more infos in README, optimized Dockerfile --- podman/Dockerfile | 5 ++--- podman/README.md | 8 ++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/podman/Dockerfile b/podman/Dockerfile index 5b79bc3..3638afc 100644 --- a/podman/Dockerfile +++ b/podman/Dockerfile @@ -6,10 +6,9 @@ ARG DEBIAN_FRONTEND=noninteractive COPY sources.list /etc/apt/sources.list COPY dependencies.txt dependencies.txt COPY 90damaris.conf /etc/environment.d/ -RUN apt-get -y update +RUN apt-get -y update && apt-get -y install apt-utils RUN apt-get -y dist-upgrade -RUN apt-get -y install apt-utils git ipython -RUN apt-get -y install python-gtk2 python-numpy python-scipy python-tables python-matplotlib python-xdg python-gtksourceview2 +RUN apt-get -y install git ipython python-gtk2 python-numpy python-scipy python-tables python-matplotlib python-xdg python-gtksourceview2 RUN git clone https://gitea.pkm.physik.tu-darmstadt.de/IPKM/python-damaris.git RUN cd python-damaris && python setup.py install --home=/opt/damaris #RUN python -m pip install --upgrade pip diff --git a/podman/README.md b/podman/README.md index 9ec4c15..5b8aa9d 100644 --- a/podman/README.md +++ b/podman/README.md @@ -1,2 +1,6 @@ -podman build -t test . -podman run --env DISPLAY=$DISPLAY --network=host -t localhost/test:latest /opt/damaris/bin/DAMARIS +# Instructions +1. Install podman. If you wnat to use it as a normal user make it rootless. +2. Build the container: ``podman build -t test .`` +3. Run the container: ``podman run --env DISPLAY=$DISPLAY --network=host -t localhost/test:latest /opt/damaris/bin/DAMARIS`` + +With `-v inside_container:podman_host`` you can map directories inside the container.