Skip to content

Commit

Permalink
update vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
mathematicalmichael committed Sep 15, 2022
1 parent 6ca065e commit 450de4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions singleuser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ RUN \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER

USER root
COPY install_vscode.sh /tmp/
RUN /tmp/install_vscode.sh

USER $NB_UID
# RUN mamba install xeus-python -y
RUN pip install jupyter_server_proxy jupyterlab-miami-nights
RUN pip install jupyter_server_proxy
RUN pip install black flake8 autopep8 isort pre-commit

COPY install_jupyter_nbextensions.sh /tmp/
Expand Down Expand Up @@ -66,3 +62,17 @@ RUN echo "export PAGER=less" >> /home/$NB_USER/.bashrc

# remember git login credentials
RUN git config --global credential.helper "cache --timeout 144000"

USER root
COPY install_vscode.sh /tmp/
RUN /tmp/install_vscode.sh

USER $NB_UID
RUN mkdir -p /home/$NB_USER/.local/share/code-server/User/
RUN code-server --install-extension ms-python.python
RUN code-server --install-extension ms-toolsai.jupyter
RUN code-server --install-extension hookyqr.beautify
RUN code-server --install-extension eamodio.gitlens
RUN code-server --install-extension mechatroner.rainbow-csv
# RUN code-server --install-extension golang.go
RUN echo '{ "python.defaultInterpreterPath": "conda", "telemetry.enableTelemetry": false, "telemetry.telemetryLevel": "off",}' > /home/$NB_USER/.local/share/code-server/User/settings.json
2 changes: 1 addition & 1 deletion singleuser/install_vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apt-get update && \
curl && \
echo "getting latest install script" && \
curl -fsSL https://code-server.dev/install.sh > install.sh && \
sh install.sh --version 4.5.1 && \
sh install.sh --version 4.7.0 && \
rm install.sh && \
apt-get -qq purge curl && \
apt-get -qq purge && \
Expand Down

0 comments on commit 450de4d

Please sign in to comment.