|
1 | | -FROM continuumio/miniconda3 |
| 1 | +FROM python:3.11-bookworm |
2 | 2 |
|
3 | | -LABEL Description="ShapePipe Docker Image" |
4 | | -ENV SHELL /bin/bash |
| 3 | +LABEL Description="Conda-Free ShapePipe Docker Image" |
| 4 | +ENV SHELL=/bin/bash |
5 | 5 |
|
6 | | -ARG CC=gcc-9 |
7 | | -ARG CXX=g++-9 |
| 6 | +# Install system dependencies |
| 7 | +RUN apt-get update -y --quiet --fix-missing && \ |
| 8 | + apt-get dist-upgrade -y --quiet --fix-missing && \ |
| 9 | + apt-cache policy autconf && \ |
| 10 | + apt-get install -y --quiet \ |
| 11 | + apt-utils \ |
| 12 | + autoconf \ |
| 13 | + automake \ |
| 14 | + build-essential \ |
| 15 | + cmake \ |
| 16 | + curl \ |
| 17 | + ffmpeg \ |
| 18 | + g++ \ |
| 19 | + gcc \ |
| 20 | + gfortran \ |
| 21 | + git-lfs \ |
| 22 | + libatlas-base-dev \ |
| 23 | + libblas-dev \ |
| 24 | + liblapack-dev \ |
| 25 | + libcfitsio-dev \ |
| 26 | + libfftw3-bin \ |
| 27 | + libfftw3-dev \ |
| 28 | + libgl1-mesa-glx \ |
| 29 | + libtool \ |
| 30 | + libtool-bin \ |
| 31 | + libtool-doc \ |
| 32 | + locales \ |
| 33 | + locate \ |
| 34 | + make \ |
| 35 | + openmpi-bin \ |
| 36 | + libopenmpi-dev \ |
| 37 | + pkg-config \ |
| 38 | + protobuf-compiler \ |
| 39 | + psfex=3.21.1-1 \ |
| 40 | + source-extractor=2.25.0+ds-3 \ |
| 41 | + weightwatcher=1.12+dfsg-3 \ |
| 42 | + vim \ |
| 43 | + xterm && \ |
| 44 | + apt-get clean -y && \ |
| 45 | + apt-get autoremove --purge --quiet -y && \ |
| 46 | + rm -rf /var/lib/apt/lists/* /var/tmp/* |
8 | 47 |
|
9 | | -# gcc < 10 is required to compile ww |
10 | | -ENV CC=gcc-9 |
11 | | -ENV CXX=g++-9 |
| 48 | +# Install CDS client by hand |
| 49 | +RUN cd /tmp && \ |
| 50 | + curl -O http://cdsarc.u-strasbg.fr/ftp/pub/sw/cdsclient.tar.gz && \ |
| 51 | + tar xvfz cdsclient.tar.gz \ |
| 52 | + && cd cdsclient-* \ |
| 53 | + && ./configure && make && make install \ |
| 54 | + && rm -rf /tmp/* |
12 | 55 |
|
13 | | -RUN apt-get update --allow-releaseinfo-change && \ |
14 | | - apt-get update && \ |
15 | | - apt-get upgrade -y && \ |
16 | | - apt-get install apt-utils -y && \ |
17 | | - apt-get install make -y && \ |
18 | | - apt-get install automake -y && \ |
19 | | - apt-get install autoconf -y && \ |
20 | | - apt-get install gcc-9 g++-9 -y && \ |
21 | | - apt-get install gfortran -y && \ |
22 | | - apt-get install locales -y && \ |
23 | | - apt-get install libgl1-mesa-glx -y && \ |
24 | | - apt-get install xterm -y && \ |
25 | | - apt-get install cmake protobuf-compiler -y && \ |
26 | | - apt-get install libtool libtool-bin libtool-doc -y && \ |
27 | | - apt-get install libfftw3-bin libfftw3-dev -y && \ |
28 | | - apt-get install libatlas-base-dev liblapack-dev libblas-dev -y && \ |
29 | | - apt-get install vim -y && \ |
30 | | - apt-get install locate -y && \ |
31 | | - apt-get install curl -y && \ |
32 | | - apt-get install acl -y && \ |
33 | | - apt-get install sssd -y && \ |
34 | | - apt-get clean |
| 56 | +# Install python dependencies |
| 57 | +RUN pip install --no-cache-dir --upgrade pip && \ |
| 58 | + pip install --no-cache-dir \ |
| 59 | + astropy==5.2 \ |
| 60 | + cs_util==0.1.0 \ |
| 61 | + galsim==2.2.6 \ |
| 62 | + ipython==8.18.1 \ |
| 63 | + joblib==1.1.0 \ |
| 64 | + jupyterlab==4.3.1 \ |
| 65 | + matplotlib==3.8.4 \ |
| 66 | + mccd==1.2.4 \ |
| 67 | + modopt==1.6.1 \ |
| 68 | + mpi4py==4.0.3 \ |
| 69 | + numba==0.58.1 \ |
| 70 | + numpy==1.26.4 \ |
| 71 | + numpydoc==1.2 \ |
| 72 | + pandas==2.2 \ |
| 73 | + PyQt5==5.15.6 \ |
| 74 | + pyqtgraph==0.12.4 \ |
| 75 | + pytest==8.3.3 \ |
| 76 | + pytest-cov==5.0.0 \ |
| 77 | + pytest-pycodestyle==2.4.1 \ |
| 78 | + pytest-pydocstyle==2.4.0 \ |
| 79 | + reproject==0.14.1 \ |
| 80 | + sf_tools==2.0.4 \ |
| 81 | + sip_tpv==1.1 \ |
| 82 | + skaha==1.4.3 \ |
| 83 | + sqlitedict==2.0.0 \ |
| 84 | + termcolor==1.1.0 \ |
| 85 | + tqdm==4.63.0 \ |
| 86 | + treecorr==5.1.1 \ |
| 87 | + vos==3.6.1.1 \ |
| 88 | + git+https://github.com/aguinot/ngmix@stable_version \ |
| 89 | + git+https://github.com/tobias-liaudat/ [email protected] \ |
| 90 | + git+https://github.com/CEA-COSMIC/pysap@develop |
35 | 91 |
|
36 | | -ADD nsswitch.conf /etc/ |
37 | 92 |
|
38 | | -RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ |
39 | | - locale-gen |
40 | | -ENV LANG en_US.UTF-8 |
41 | | -ENV LANGUAGE en_US:en |
42 | | -ENV LC_ALL en_US.UTF-8 |
| 93 | +WORKDIR /app |
| 94 | +COPY . /app/. |
43 | 95 |
|
44 | | -SHELL ["/bin/bash", "--login", "-c"] |
45 | | - |
46 | | -COPY ./environment.yml ./ |
47 | | -COPY install_shapepipe README.rst setup.py setup.cfg ./ |
48 | | -RUN touch ./README.md |
49 | | - |
50 | | -RUN conda update -n base -c defaults conda -c defaults |
51 | | -RUN conda env create --file environment.yml |
52 | | - |
53 | | -COPY shapepipe ./shapepipe |
54 | | -COPY scripts ./scripts |
55 | | - |
56 | | -RUN source activate shapepipe |
57 | | -#RUN pip install jupyter |
| 96 | +# Install shapepipe and symlink scripts |
| 97 | +RUN pip install --no-cache-dir -e . && \ |
| 98 | + for ext in .py .sh .bash; do \ |
| 99 | + for script in /app/scripts/*/*$ext; do \ |
| 100 | + link_name=`basename $script $ext`; \ |
| 101 | + ln -s $script /usr/local/bin/$link_name; \ |
| 102 | + done; \ |
| 103 | + done |
0 commit comments