From 4a239703b1c6a36b717c94e687156df92ab4c9d8 Mon Sep 17 00:00:00 2001 From: jlashner Date: Tue, 16 Jun 2020 14:50:53 -0700 Subject: [PATCH] Added sotodlib installation to ocs-util --- docker/ocs-util/Dockerfile | 3 +++ docker/ocs-util/requirements.txt | 9 ++++++++- docker/ocs-util/setup_sotodlib.sh | 14 ++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 docker/ocs-util/setup_sotodlib.sh diff --git a/docker/ocs-util/Dockerfile b/docker/ocs-util/Dockerfile index b8e921d4..6fa792cf 100644 --- a/docker/ocs-util/Dockerfile +++ b/docker/ocs-util/Dockerfile @@ -3,6 +3,9 @@ FROM ocs:latest COPY requirements.txt /tmp/requirements.txt RUN pip3 install -r /tmp/requirements.txt +COPY setup_sotodlib.sh /tmp/setup_sotodlib.sh +RUN sh /tmp/setup_sotodlib.sh + USER ocs:ocs ENV JUPYTER_CONFIG_DIR /home/ocs/.jupyter diff --git a/docker/ocs-util/requirements.txt b/docker/ocs-util/requirements.txt index 0acb9ea0..ab2b851d 100644 --- a/docker/ocs-util/requirements.txt +++ b/docker/ocs-util/requirements.txt @@ -1,2 +1,9 @@ - jupyter +scipy + +# Requirements for sotodlib +quaternionarray +toml + +# Requirement for sotoddb +h5py diff --git a/docker/ocs-util/setup_sotodlib.sh b/docker/ocs-util/setup_sotodlib.sh new file mode 100644 index 00000000..474f8a7a --- /dev/null +++ b/docker/ocs-util/setup_sotodlib.sh @@ -0,0 +1,14 @@ +cd /app_lib + +git clone https://github.com/simonsobs/sotoddb.git +git clone https://github.com/simonsobs/sotodlib.git + +# Installs sotoddb. Will take this out when it's no longer needed +cd sotoddb +echo "Installing sotoddb..." +pip3 install . + +cd /app_lib/sotodlib +echo "Installing sotodlib..." +git checkout tags/v0.3.0 +pip3 install -e .