From ae7148a655b8610db2bf7817203e10dc4940ffe0 Mon Sep 17 00:00:00 2001 From: Philipp Arras <parras@mpa-garching.mpg.de> Date: Fri, 20 Nov 2020 17:36:31 +0100 Subject: [PATCH] Some notes on compressing measurement sets with Docker --- misc/Dockerfile | 5 +++-- misc/README.org | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 misc/README.org diff --git a/misc/Dockerfile b/misc/Dockerfile index 719f12f5..714aceb0 100644 --- a/misc/Dockerfile +++ b/misc/Dockerfile @@ -4,5 +4,6 @@ RUN docker-apt-install dysco python3-casacore RUN apt-get update -qq && apt-get install -qq python3-pip python3-matplotlib git RUN pip3 install scipy pybind11 git+https://gitlab.mpcdf.mpg.de/ift/nifty.git@NIFTy_7 RUN pip3 install git+https://gitlab.mpcdf.mpg.de/mtr/ducc.git@ducc0 -RUN pip3 install git+https://gitlab.mpcdf.mpg.de/ift/resolve.git -RUN mkdir /work +COPY . /resolve +RUN cd resolve && python3 setup.py install +ENTRYPOINT ["python3", "resolve/misc/ms_compress.py"] diff --git a/misc/README.org b/misc/README.org new file mode 100644 index 00000000..4c94cb14 --- /dev/null +++ b/misc/README.org @@ -0,0 +1,14 @@ +* How to convert a measurement set to a npz file with Docker + +Assume that the measurement set folder is located at +`/data/<ms-folder>`. Then the following commands create the npz-files +`/data/<outputname>field<i>.npz` from it. + +#+BEGIN_SRC sh +docker build -f misc/Dockerfile -t <tag> . +docker run -v /data:/mnt <tag> mnt/<ms-folder> mnt/<outputname> +#+END_SRC + +Note that the first command needs to be run from the project root of +resolve. It installs the current checked out version of resolve into +the Docker container. -- GitLab