From 2d25c874343ef0f81c36a0a34f35356bffcf0d60 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Sun, 19 Jan 2025 12:56:12 +0100 Subject: [PATCH] added stretch container to be able to run old damaris on new machines --- podman/90damaris.conf | 1 + podman/Dockerfile | 18 ++++++++++++++++++ podman/README.md | 2 ++ podman/dependencies.txt | 3 +++ podman/sources.list | 3 +++ 5 files changed, 27 insertions(+) create mode 100644 podman/90damaris.conf create mode 100644 podman/Dockerfile create mode 100644 podman/README.md create mode 100644 podman/dependencies.txt create mode 100644 podman/sources.list diff --git a/podman/90damaris.conf b/podman/90damaris.conf new file mode 100644 index 0000000..0042c27 --- /dev/null +++ b/podman/90damaris.conf @@ -0,0 +1 @@ +PYTHONPATH=$PYTHONPATH:/opt/damaris/lib/python diff --git a/podman/Dockerfile b/podman/Dockerfile new file mode 100644 index 0000000..5b79bc3 --- /dev/null +++ b/podman/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:stretch + +LABEL maintainer="markus.rosenstihl@pkm.tu-darmstadt.de" + +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 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 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 +#RUN pip2 install -r dependencies.txt + +#COPY . . diff --git a/podman/README.md b/podman/README.md new file mode 100644 index 0000000..9ec4c15 --- /dev/null +++ b/podman/README.md @@ -0,0 +1,2 @@ +podman build -t test . +podman run --env DISPLAY=$DISPLAY --network=host -t localhost/test:latest /opt/damaris/bin/DAMARIS diff --git a/podman/dependencies.txt b/podman/dependencies.txt new file mode 100644 index 0000000..bd570dd --- /dev/null +++ b/podman/dependencies.txt @@ -0,0 +1,3 @@ +#numpy +#tables +#scipy diff --git a/podman/sources.list b/podman/sources.list new file mode 100644 index 0000000..606fec2 --- /dev/null +++ b/podman/sources.list @@ -0,0 +1,3 @@ +deb http://archive.debian.org/debian/ stretch main contrib non-free +deb http://archive.debian.org/debian/ stretch-proposed-updates main contrib non-free +deb http://archive.debian.org/debian-security stretch/updates main contrib non-free