Skip to content

Commit

Permalink
Merge pull request #31 from NASA-Openscapes/vscode-extensions
Browse files Browse the repository at this point in the history
Make VS extensions dir as root and give to nb_user
  • Loading branch information
betolink authored Jun 18, 2024
2 parents 449b1ef + 921ec25 commit 253f4a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ USER root

ENV QUARTO_CLI=https://github.com/quarto-dev/quarto-cli/releases/download/v1.3.433/quarto-1.3.433-linux-amd64.deb

ENV VSCODE_EXT_DIR=/opt/code-server/extensions
RUN mkdir -p ${VSCODE_EXT_DIR} && chown -R ${NB_USER}: ${VSCODE_EXT_DIR}

RUN wget -O /tmp/quarto.deb ${QUARTO_CLI} && dpkg -i /tmp/quarto.deb && rm -rf /tmp/quarto.deb && apt-get clean

USER ${NB_USER}
Expand All @@ -16,8 +19,7 @@ WORKDIR ${HOME}/.kernels

RUN chmod +x install-kernels.sh && cd /home/jovyan/.kernels && ./install-kernels.sh environments

RUN mkdir -p /opt/code-server/extensions && \
echo "extensions-dir: /opt/code-server/extensions" >> $HOME/.config/code-server/config.yaml && \
RUN echo "extensions-dir: $VSCODE_EXT_DIR" >> $HOME/.config/code-server/config.yaml && \
EXT_LIST="ms-python.python quarto.quarto" && \
for EXT in $EXT_LIST; do code-server --install-extension $EXT; done

Expand Down

0 comments on commit 253f4a5

Please sign in to comment.