From 638eed7dba7e3438948b25cc209429d072930db0 Mon Sep 17 00:00:00 2001 From: Javier Vegas-Regidor Date: Sat, 30 May 2020 10:30:45 +0200 Subject: [PATCH] Add docker image and bump version --- docker/dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docker/dockerfile diff --git a/docker/dockerfile b/docker/dockerfile new file mode 100644 index 00000000..f1e4bc03 --- /dev/null +++ b/docker/dockerfile @@ -0,0 +1,30 @@ +#FROM continuumio/miniconda3:jessie-20190506 +FROM bsces/miniconda3:debian-stretch-20190610 + + +# update the conda packages +RUN conda update -y conda pip + +# # install development tools +# RUN apt-get update -y && apt-get install -y \ +# build-essential \ +# curl \ +# unzip + +# install environment packages +COPY . /home/root/source +WORKDIR /home/root/source +RUN ls +RUN conda env update --name base --file environment.yml +RUN git clone https://earth.bsc.es/gitlab/es/diagonals.git +RUN pip install ./diagonals +RUN pip install /home/root/source +RUN conda clean --all -y +RUN rm -r diagonals +RUN rm -r /home/root/source + +# run tests +RUN earthdiags -h + +ENTRYPOINT ["earthdiags"] +CMD ["-h"] -- GitLab