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
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.github/
GitVersion.yml
docs/
GitVersion.yml
README.md
LICENSE
43 changes: 27 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# - Code Server

ARG OWNER=lscsde
ARG BASE_CONTAINER=quay.io/jupyter/minimal-notebook:python-3.12.11
ARG BASE_CONTAINER=quay.io/jupyter/minimal-notebook:python-3.13.13
FROM $BASE_CONTAINER
ARG TARGETOS TARGETARCH
LABEL maintainer="lscsde"
Expand All @@ -16,31 +16,42 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]

USER root

COPY vsix vsix

RUN mamba install code-server \
&& mamba clean --all -f -y \
&& fix-permissions "${CONDA_DIR}" \
&& fix-permissions "/home/${NB_USER}"

RUN code-server --install-extension charliermarsh.ruff
RUN code-server --install-extension databricks.databricks
RUN code-server --install-extension databricks.sqltools-databricks-driver
RUN code-server --install-extension davidanson.vscode-markdownlint


# Install all extensions in one layer: aids faster build and smaller image
RUN code-server --install-extension charliermarsh.ruff \
&& code-server --install-extension databricks.databricks \
&& code-server --install-extension databricks.sqltools-databricks-driver \
&& code-server --install-extension davidanson.vscode-markdownlint \
&& code-server --install-extension ms-python.black-formatter \
&& code-server --install-extension ms-python.python \
&& code-server --install-extension mtxr.sqltools \
&& code-server --install-extension njpwerner.autodocstring \
&& code-server --install-extension tobikodata.sqlmesh \
&& rm -rf vsix

# RUN code-server --install-extension charliermarsh.ruff
# RUN code-server --install-extension databricks.databricks
# RUN code-server --install-extension databricks.sqltools-databricks-driver
# RUN code-server --install-extension davidanson.vscode-markdownlint
# RUN code-server --install-extension jannisx11.batch-rename-extension
RUN code-server --install-extension ms-python.black-formatter
RUN code-server --install-extension ms-python.python
# RUN code-server --install-extension ms-python.black-formatter
# RUN code-server --install-extension ms-python.python
# RUN code-server --install-extension ms-toolsai.jupyter
# RUN code-server --install-extension ms-toolsai.jupyter-renderers
# RUN code-server --install-extension ms-toolsai.vscode-jupyter-cell-tags
# RUN code-server --install-extension ms-toolsai.vscode-jupyter-keymap
RUN code-server --install-extension mtxr.sqltools
RUN code-server --install-extension njpwerner.autodocstring
RUN code-server --install-extension tobikodata.sqlmesh
RUN code-server --install-extension vsix/github.copilot-1.350.0-web.vsix
RUN code-server --install-extension vsix/github.copilot-chat-0.29.0.vsix
# RUN code-server --install-extension mtxr.sqltools
# RUN code-server --install-extension njpwerner.autodocstring
# RUN code-server --install-extension tobikodata.sqlmesh
# RUN code-server --install-extension vsix/github.copilot-1.350.0-web.vsix
# RUN code-server --install-extension vsix/github.copilot-chat-0.29.0.vsix

RUN rm -rf vsix
# Copy custom config for jupyter
COPY jupyter_notebook_config.json /etc/jupyter/jupyter_notebook_config.json

Expand All @@ -66,4 +77,4 @@ RUN uv pip install --system -r requirements.txt && rm requirements.txt
# Fix folder permissions and switch back to jovyan to avoid accidental container runs as root
RUN fix-permissions "${CONDA_DIR}" \
&& fix-permissions "/home/${NB_USER}"
USER ${NB_UID}
USER ${NB_UID}
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
black
databricks-connect==15.4.*
databricks-connect==18.1.*
isort
jupyterlab_code_formatter
jupyterlab-git
pre-commit
python-dotenv
ruff
sqlmesh[web,mssql,databricks,lsp]~=0.217
sqlmesh[web,mssql,databricks,lsp]~=0.234.1
Binary file removed vsix/github.copilot-1.350.0-web.vsix
Binary file not shown.
Binary file removed vsix/github.copilot-chat-0.29.0.vsix
Binary file not shown.
Binary file removed vsix/github.copilot-chat-0.30.0.vsix
Binary file not shown.
Loading