Skip to content
Snippets Groups Projects
Verified Commit 19f74193 authored by David Hoese's avatar David Hoese
Browse files

Update buildbucket Dockerfile to source conda better

parent 7be6a076
No related branches found
No related tags found
No related merge requests found
# To build:
# docker build -t gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-gridded-glm/buildbucket .
FROM centos:7 FROM centos:7
WORKDIR /work WORKDIR /work
...@@ -7,10 +9,10 @@ COPY package.sh . ...@@ -7,10 +9,10 @@ COPY package.sh .
# Download miniconda # Download miniconda
RUN curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh RUN curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# Install miniconda # Install miniconda (copied from https://hub.docker.com/r/continuumio/miniconda3/dockerfile)
RUN bash miniconda.sh -b -p $HOME/miniconda RUN /bin/bash miniconda.sh -b -p $HOME/miniconda && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
ENV PATH $HOME/miniconda/bin:$PATH echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
RUN conda env create -y -n build -f buildbucket_environment.yaml echo "conda activate base" >> ~/.bashrc
RUN conda activate build RUN /bin/bash -c "$HOME/miniconda/bin/conda env create -n build -f buildbucket_environment.yaml"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment