diff --git a/misc/Dockerfile b/misc/Dockerfile index 719f12f54bbbd7e966e46db04d1eeb2de374067b..714aceb007ae7169624ec4e47159ffd68a132322 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 0000000000000000000000000000000000000000..4c94cb145cbcbc8ae60d11c870528eda354c2e57 --- /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.