1
- # sodetlib dockerfile.
2
- FROM tidair/pysmurf-client:v7.1.0
3
-
4
- # ################################################################
5
- # SPT3G Install
6
- # ################################################################
7
- WORKDIR /usr/local/src/
8
-
9
- ENV TZ=Etc/UTC
10
- RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
11
-
12
- RUN apt-get update
13
-
14
- RUN apt-get install -y \
15
- libboost-all-dev \
16
- libflac-dev \
17
- libnetcdf-dev \
18
- libfftw3-dev \
19
- libgsl0-dev \
20
- tcl \
21
- environment-modules \
22
- gdb \
23
- rsync \
24
- cmake \
25
- libblas-dev \
26
- # so3g reqs
27
- automake \
28
- gfortran \
29
- build-essential \
30
- libbz2-dev \
31
- libopenblas-dev \
32
- && rm -rf /var/lib/apt/lists/*
33
-
34
- RUN git clone https://github.com/CMB-S4/spt3g_software.git && cd spt3g_software && git checkout 5f30121395129de9c9a6af2976de8ba8e876b5a8
35
- RUN cd spt3g_software \
36
- && mkdir -p build \
37
- && cd build \
38
- && cmake .. -DPYTHON_EXECUTABLE=`which python3` \
39
- && make core version
40
-
41
- ENV SPT3G_SOFTWARE_PATH /usr/local/src/spt3g_software
42
- ENV SPT3G_SOFTWARE_BUILD_PATH /usr/local/src/spt3g_software/build
43
- ENV PYTHONPATH /usr/local/src/spt3g_software/build:${PYTHONPATH}
44
-
45
- # ################################################################
46
- # SO3G Install
47
- # ################################################################
48
- WORKDIR /usr/local/src
49
- ENV LANG C.UTF-8
50
-
51
- RUN git clone https://github.com/simonsobs/so3g.git
52
- WORKDIR /usr/local/src/so3g
53
- RUN pip3 install -r requirements.txt
54
-
55
- ENV Spt3g_DIR /usr/local/src/spt3g_software
56
- # Install qpoint
57
- RUN /bin/bash /usr/local/src/so3g/docker/qpoint-setup.sh
58
-
59
- # Build so3g
60
- RUN mkdir build \
61
- && cd build \
62
- && cmake .. -DCMAKE_PREFIX_PATH=$SPT3G_SOFTWARE_BUILD_PATH \
63
- && make \
64
- && make install
65
-
66
- # ################################################################
67
- # SOTODLIB Install
68
- # ################################################################
69
- WORKDIR /usr/local/src
70
-
71
- # Freeze sotodlib before so3g was added as requirement
72
- RUN git clone https://github.com/simonsobs/sotodlib.git && cd sotodlib && git checkout e37d2c0b342f609cf640ee79541c98f7a2d7485a
73
- RUN pip3 install quaternionarray sqlalchemy
74
- RUN pip3 install ./sotodlib
75
-
76
- # ################################################################
77
- # OCS Install
78
- # ################################################################
79
- RUN git clone --branch py36 https://github.com/simonsobs/ocs.git
80
-
81
- RUN pip3 install cryptography==3.3.2
82
- # RUN pip3 install -r ocs/requirements.txt
83
- RUN pip3 install ./ocs
84
-
85
- # Sets ocs configuration environment
86
- ENV OCS_CONFIG_DIR=/config
1
+ FROM simonsobs/so_smurf_base:v0.0.2
87
2
88
3
# ################################################################
89
4
# sodetlib Install
90
5
# ################################################################
91
6
COPY . /sodetlib
92
7
WORKDIR /sodetlib
93
8
RUN pip3 install -e .
94
- RUN pip3 install -r requirements.txt
95
-
96
- # This is to get the leap-second download out of the way
97
- RUN python3 -c "import so3g"
9
+ RUN pip3 install -r requirements.txt
0 commit comments