Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

Dockerfile-singularity 1.23 KB
Newer Older
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
FROM debian:stretch

ARG INSTALL_PATH=/opt/conda

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH $INSTALL_PATH/bin:$PATH

RUN apt-get update --fix-missing && \
    apt-get install --yes \
      wget \
      bzip2 \
      ca-certificates \
      libglib2.0-0 \
      libxext6 \
      libsm6 \
      libxrender1 \
      git \
      mercurial \
      subversion && \
    apt-get clean

RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /root/anaconda.sh && \
    mkdir -p $(dirname $INSTALL_PATH) && \
    /bin/bash /root/anaconda.sh -b -p $INSTALL_PATH && \
    rm -f ~/anaconda.sh && \
    . $INSTALL_PATH/etc/profile.d/conda.sh && \
27 28 29
    conda install --yes \
      conda \
      conda-build \
30 31
      conda-verify && \
    conda config --system --prepend channels conda-forge
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

COPY environment-py27.yml /tmp
RUN conda env create -f /tmp/environment-py27.yml

COPY environment-py36.yml /tmp
RUN conda env create -f /tmp/environment-py36.yml

COPY environment-py37.yml /tmp
RUN conda env create -f /tmp/environment-py37.yml

RUN conda clean --all --yes

RUN cp $INSTALL_PATH/etc/profile.d/conda.sh /etc/profile.d

COPY entrypoint /bin
RUN chmod 0755 /bin/entrypoint

ENTRYPOINT [ "entrypoint" ]
CMD [ "ligo-py37", "lal_version" ]