forked from svalenti/FLOYDS_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
71 lines (51 loc) · 2.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM python:2.7.16-slim-buster
ENV iraf /iraf/iraf/
ENV IRAFARCH linux64
ENV TERM xterm
RUN apt-get update \
&& apt -y install gcc make flex git wget \
&& apt -y install libcurl4-openssl-dev libexpat-dev libreadline-dev \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p $iraf \
&& cd /iraf \
&& git clone https://github.com/iraf-community/iraf.git \
&& cd $iraf \
&& git checkout 567961f \
&& ./install < /dev/null \
&& make linux64 \
&& make sysgen
RUN apt-get update && \
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev
RUN wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz && \
tar xvf Python-3.6.9.tgz && cd Python-3.6.9 && \
./configure --enable-optimizations --enable-shared --with-ensurepip=install && \
make -j8 && make altinstall
RUN apt-get update \
&& apt-get -y install libx11-dev libcfitsio-bin wget x11-apps libtk8.6 \
openssh-client wcstools libxml2 vim zip \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install setuptools==44.1.1
RUN pip install numpy==1.16.6 astropy==2.0.16 pyraf==2.1.15 matplotlib==2.2.4 xhtml2pdf==0.2.4 pathlib2==2.3.5 requests==2.22.0 pytest==3.6.4 stsci.tools==3.6.0 && rm -rf ~/.cache/pip
RUN python3.6 -m pip install ocs_ingester>=3.0.3 kombu && rm -rf ~/.cache/pip
RUN wget http://ds9.si.edu/download/debian10/ds9.debian10.8.4.1.tar.gz \
&& tar -xzvf ds9.debian10.8.4.1.tar.gz -C /usr/local/bin \
&& rm -rf ds9.debian10.8.4.1.tar.gz
RUN mkdir -p /home/archive/iraf && /usr/sbin/groupadd -g 10000 "domainusers" \
&& /usr/sbin/useradd -g 10000 -d /home/archive -M -N -u 10087 archive \
&& chown -R archive:domainusers /home/archive \
&& mkdir -p /archive/engineering \
&& chown -R archive:domainusers /archive/engineering
USER archive
WORKDIR /home/archive/iraf
RUN mkiraf --term=xgterm -i
USER root
COPY . /usr/src/floyds_pipeline
WORKDIR /usr/src/floyds_pipeline
RUN python setup.py install
USER archive
WORKDIR /home/archive
ENV DISPLAY host.docker.internal:0