Commit 2321fc35 authored by Thomas Lips's avatar Thomas Lips
Browse files

cleanup conda base image

parent 4d493dbc
# select base image: scipy notebook (gpu-enabled)
# select base image: minimal jupyter notebook (gpu-enabled)
FROM gitlab.ilabt.imec.be:4567/ilabt/gpu-docker-stacks/minimal-notebook:cuda10.1-ubuntu18.04
# name your environment and choose python 3.x version
# set python version to 3.0
ARG conda_env=python38
ARG py_ver=3.8
# you can add additional libraries you want mamba to install by listing them below the first line and ending with "&& \"
# create conda environment
RUN conda create --quiet --yes -p "${CONDA_DIR}/envs/${conda_env}" python=${py_ver} ipython ipykernel && \
conda clean --all -f -y
# alternatively, you can comment out the lines above and uncomment those below
# if you'd prefer to use a YAML file present in the docker build context
# COPY --chown=${NB_UID}:${NB_GID} environment.yml "/home/${NB_USER}/tmp/"
# RUN cd "/home/${NB_USER}/tmp/" && \
# mamba env create -p "${CONDA_DIR}/envs/${conda_env}" -f environment.yml && \
# mamba clean --all -f -y
# create Python 3.x environment and link it to jupyter
RUN "${CONDA_DIR}/envs/${conda_env}/bin/python" -m ipykernel install --user --name="${conda_env}"
# prepend conda environment to path
ENV PATH "${CONDA_DIR}/envs/${conda_env}/bin:${PATH}"
# if you want this environment to be the default one, uncomment the following line:
ENV CONDA_DEFAULT_ENV ${conda_env}
\ No newline at end of file
# set to default
ENV CONDA_DEFAULT_ENV ${conda_env}
# gpulab
Docker resources for GPULab
\ No newline at end of file
Docker resources for GPULab
### Known Issues:
- sometimes a 403 error appears in jupyter lab when opening the `python38` kernel, this has to do with caching of chrome (cf https://github.com/jupyter/notebook/issues/2396). The solution is to do a hard refresh (CTRL + F5).
\ No newline at end of file
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