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.

Commit 281b86c4 authored by Thomas Downes's avatar Thomas Downes

Initial commit of bare conda installation on CVMFS

parents
---
image: docker:latest
variables:
DOCKER_DRIVER: overlay
TAG: $CI_REGISTRY_IMAGE:latest
build:
only:
- schedules
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull -t $TAG --build-arg INSTALL_PATH=/cvmfs/ligo-containers.opensciencegrid.org/${GITLAB_USER_LOGIN}/${CI_PROJECT_NAME}/${CI_COMMIT_TAG} .
- docker push $TAG
FROM debian:stretch
ARG INSTALL_PATH
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.continuum.io/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 && \
conda install --yes lal -c conda-forge
FROM scratch
ARG INSTALL_PATH
COPY --from=0 $INSTALL_PATH /
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment