Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ RUN cd /usr/bin && \
RUN sudo vault -autocomplete-install

# INSTALL MINICONDA -------------------------------
ARG CONDA_DIR=/home/coder/local/bin/conda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p /home/coder/local/bin/conda
RUN bash Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_DIR
RUN rm -f Miniconda3-latest-Linux-x86_64.sh

# Install mamba (speed up packages install with conda)
Expand All @@ -44,20 +45,19 @@ RUN conda install mamba -n base -c conda-forge
RUN conda create -n basesspcloud python=$PYTHON_VERSION
COPY environment.yml .
RUN mamba env update -n basesspcloud -f environment.yml

# Make basesspcloud env activated by default in shells
ENV PATH="/home/coder/local/bin/conda/envs/basesspcloud/bin:${PATH}"
RUN echo "export PATH=$PATH" >> /home/coder/.bashrc # Temporary fix while PATH gets overwritten by code-server

# Put additional VSCode settings in remote configuration
# Additional VSCode settings
# Put in remote settings because : https://github.com/coder/code-server/issues/4609
RUN mkdir -p /home/coder/.local/share/code-server/Machine/
COPY settings.json /home/coder/.local/share/code-server/Machine/settings.json

# Nice colors in python terminal
RUN echo "import sys ; from IPython.core.ultratb import ColorTB ; sys.excepthook = ColorTB() ;" >> /home/coder/local/bin/conda/envs/basesspcloud/lib/python${PYTHON_VERSION}/site-packages/sitecustomize.py

# INSTALL VSTUDIO EXTENSIONS
RUN code-server --install-extension ms-python.python
RUN code-server --install-extension ms-kubernetes-tools.vscode-kubernetes-tools
RUN code-server --install-extension ms-azuretools.vscode-docker
RUN code-server --install-extension njpwerner.autodocstring
RUN code-server --install-extension redhat.vscode-yaml

RUN echo $PATH
RUN code-server --install-extension redhat.vscode-yaml
6 changes: 4 additions & 2 deletions settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"workbench.colorTheme": "Default Dark+",
"python.defaultInterpreterPath": "/home/coder/local/bin/conda/envs/basesspcloud/bin/python"
}
"python.pythonPath": "/home/coder/local/bin/conda/envs/basesspcloud/bin/python",
"python.defaultInterpreterPath": "/home/coder/local/bin/conda/envs/basesspcloud/bin/python",
"terminal.integrated.inheritEnv": false
}