-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lukas.gehrig
committed
Oct 2, 2023
1 parent
e67532c
commit 53254dd
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
# LEGACY-FILE, has to be checked before usage | ||
# Create build container to not have copied filed in real container afterwards | ||
FROM --platform=amd64 continuumio/miniconda3:4.12.0 as build | ||
COPY environment.yaml environment.yaml | ||
COPY requirements.txt requirements.txt | ||
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 as build | ||
RUN apt-get update && apt-get install -y git | ||
RUN git clone --branch ${KARABO_TAG} --depth=1 https://github.com/i4Ds/Karabo-Pipeline.git | ||
|
||
FROM --platform=amd64 continuumio/miniconda3:4.12.0 | ||
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 | ||
RUN apt-get update && apt-get install -y libarchive13 wget curl nano | ||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py39_23.5.0-3-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda | ||
ENV PATH=/opt/conda/bin:$PATH CONDA_PREFIX=/opt/conda | ||
RUN conda init | ||
SHELL ["conda", "run", "-n", "base", "/bin/bash", "-c"] | ||
RUN apt-get update && apt-get install -y curl && apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
COPY --from=build environment.yaml environment.yaml | ||
COPY --from=build requirements.txt requirements.txt | ||
RUN conda update -y conda && \ | ||
conda clean --all --yes && \ | ||
conda install mamba -y -c conda-forge | ||
RUN mamba env update --file environment.yaml | ||
RUN pip install -r requirements.txt | ||
RUN rm environment.yaml requirements.txt | ||
RUN pip install unittest-xml-reporting | ||
COPY --from=build environment.yaml environment.yaml | ||
COPY --from=build requirements.txt requirements.txt | ||
RUN mamba env update --file environment.yaml && \ | ||
pip install -r requirements.txt && \ | ||
pip install jupyterlab ipykernel && \ | ||
python -m ipykernel install --user --name=karabo && \ | ||
rm environment.yaml requirements.txt | ||
RUN mkdir /workspace | ||
WORKDIR /workspace |