Skip to content

Commit c8f1ee6

Browse files
committed
use User settings
1 parent 9878e4d commit c8f1ee6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
FROM codercom/code-server:4.4.0
22
ARG PYTHON_VERSION=3.10
3-
ARG QUARTO_VERSION="0.9.393"
4-
5-
USER root
63

74
# Install common softwares
85
RUN apt-get -y update && \
@@ -11,6 +8,7 @@ RUN apt-get -y update && \
118
rm -rf /var/lib/apt/lists/*
129

1310
# Install QUARTO
11+
ARG QUARTO_VERSION="0.9.508"
1412
RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb"
1513
RUN apt install "./quarto-${QUARTO_VERSION}-linux-amd64.deb"
1614

@@ -30,14 +28,16 @@ RUN conda create -n basesspcloud python=$PYTHON_VERSION
3028
COPY environment.yml .
3129
RUN mamba env update -n basesspcloud -f environment.yml
3230

33-
# Make basesspcloud env activated by default in shells
31+
# Use basesspcloud env by default
32+
RUN '. "/home/coder/local/bin/conda/etc/profile.d/conda.sh"' >> /home/coder/.bashrc
33+
RUN 'conda activate basesspcloud' >> /home/coder/.bashrc
3434
ENV PATH="/home/coder/local/bin/conda/envs/basesspcloud/bin:${PATH}"
35-
RUN echo "export PATH=$PATH" >> /home/coder/.bashrc # Temporary fix while PATH gets overwritten by code-server
35+
RUN echo "export PATH=$PATH" >> /home/coder/.bashrc
3636

3737
# Additional VSCode settings
3838
# Put in remote settings because : https://github.com/coder/code-server/issues/4609
39-
RUN mkdir -p /home/coder/.local/share/code-server/Machine/
40-
COPY settings.json /home/coder/.local/share/code-server/Machine/settings.json
39+
RUN mkdir -p /home/coder/.local/share/code-server/User/
40+
COPY settings.json /home/coder/.local/share/code-server/User/settings.json
4141

4242
# INSTALL VSTUDIO EXTENSIONS
4343
RUN code-server --install-extension ms-python.python

settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"workbench.colorTheme": "Default Dark+",
3+
"security.workspace.trust.enabled": false,
4+
"security.workspace.trust.startupPrompt": "never",
5+
"terminal.integrated.inheritEnv": false,
36
"python.pythonPath": "/home/coder/local/bin/conda/envs/basesspcloud/bin/python",
47
"python.defaultInterpreterPath": "/home/coder/local/bin/conda/envs/basesspcloud/bin/python",
5-
"terminal.integrated.inheritEnv": false,
68
"python.linting.flake8Enabled": true,
79
"python.testing.pytestEnabled": true
810
}

0 commit comments

Comments
 (0)