From 2b7cc8db04057d98f181f79d9dca8a3f0f073a1b Mon Sep 17 00:00:00 2001 From: wesuuu Date: Wed, 24 Aug 2022 15:47:56 -0700 Subject: [PATCH] Resolve conda issues --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1874044..b49a670 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,7 @@ ARG DONKEYCAR_VERSION=4.3.22 DONKEYCAR_BRANCH=main # https://github.com/mamba-org/mamba/issues/1403#issuecomment-1024629004 RUN conda update conda && \ - mamba update mamba && \ - pip install ipykernel==6.7.0 + mamba update mamba RUN mkdir /opt/local && \ cd /opt/local && \ @@ -17,14 +16,17 @@ RUN mkdir /opt/local && \ cd donkeycar && \ mamba env create -f install/envs/ubuntu.yml && \ eval "$(conda shell.bash hook)" + RUN mamba install -n donkey cudatoolkit=10.1 tensorflow-gpu=2.2.0 nb_conda_kernels -c anaconda -y && \ chown -R jovyan /home/jovyan -RUN python -m ipykernel install --name=donkey --display-name="Donkey Car ($DONKEYCAR_VERSION-$DONKEYCAR_BRANCH)" +RUN conda run -n donkey /bin/bash -c "ipython kernel install --name=donkey --display-name=\"Donkey Car ($DONKEYCAR_VERSION-$DONKEYCAR_BRANCH)\"" RUN chown -R jovyan /opt/local +WORKDIR /opt/local/donkeycar +RUN conda run -n donkey /bin/bash -c "pip install -e .[pc]" + +WORKDIR /home/jovyan + USER $NB_UID -RUN cd /opt/local/donkeycar && eval "$(conda shell.bash hook)" && conda activate donkey && \ - pip install -e .[pc] -# conda install -c conda-forge --yes --quiet --verbose cudatoolkit=10.1 && \