diff --git a/codeserver/Extensions.md b/codeserver/Extensions.md new file mode 100644 index 000000000..d0320037a --- /dev/null +++ b/codeserver/Extensions.md @@ -0,0 +1,29 @@ +# Code - Extensions + +Our code-server image will provide an easy way for users to deploy a code instance with AI focused extensions. + +All extensions can be downloaded from either [https://open-vsx.org](https://open-vsx.org) (preferred) or [https://marketplace.visualstudio.com](https://marketplace.visualstudio.com) + +> Detail: some extensions are already available inside of other extensions, that are called "extension packages", i.e., when you install the `ms-python.python` extension, it already comes bundled with the `ms-python.debugpy` extension. +> +> All extension files are available inside the `ubiX-python-Y/utils/` directory, but only the main ones will be installed. + +List of extensions used: + +- Python [ms-python.python] + - Python Debugger [ms-python.debugpy] +- Jupyter [ms-toolsai.jupyter] + - Jupyter Keymap [ms-toolsai.jupyter-keymap] + - Jupyter Notebook Renderers [ms-toolsai.jupyter-renderers] + - Jupyter Cell Tags [ms-toolsai.vscode-jupyter-cell-tags] + - Jupyter Slide Show [ms-toolsai.vscode-jupyter-slideshow] + +## Update process + +To update the extensions, we suggest running a code-server image locally using Podman and manually checking the extensions tab, in a way that you can identify the version available to the version of code-server that you are running on, since some extensions are not available to some code-server versions. + +1. Run a code-server image +2. Search for the desired extensions on the `extensions` tab +3. Search for the desired version of the extension that you want to install +4. Under `Resources`, you can click on `Marketplace` to see more details on `Open VSX Registry` + 1. On `Open VSX Registry` you can select a specific version or click on `Download` to download the `vsix` file diff --git a/codeserver/ubi9-python-3.11/Dockerfile b/codeserver/ubi9-python-3.11/Dockerfile index 3eb7363d2..eab0338b3 100644 --- a/codeserver/ubi9-python-3.11/Dockerfile +++ b/codeserver/ubi9-python-3.11/Dockerfile @@ -1,7 +1,7 @@ ARG BASE_IMAGE FROM ${BASE_IMAGE} -ARG CODESERVER_VERSION=v4.22.0 +ARG CODESERVER_VERSION=v4.92.2 LABEL name="odh-notebook-code-server-ubi9-python-3.11" \ summary="code-server image with python 3.11 based on UBI 9" \ @@ -43,9 +43,8 @@ COPY --chown=1001:0 utils utils/ # Create and intall the extensions though build-time on a temporary directory. Later this directory will copied on the `/opt/app-root/src/.local/share/code-server/extensions` via run-code-server.sh file when it starts up. RUN mkdir -p /opt/app-root/extensions-temp && \ - code-server --install-extension /opt/app-root/bin/utils/ms-python.python-2024.2.1.vsix --extensions-dir /opt/app-root/extensions-temp && \ - code-server --install-extension /opt/app-root/bin/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix --extensions-dir /opt/app-root/extensions-temp && \ - code-server --install-extension /opt/app-root/bin/utils/ms-toolsai.jupyter-2023.11.100.vsix --extensions-dir /opt/app-root/extensions-temp + code-server --install-extension /opt/app-root/bin/utils/ms-python.python-2024.14.1.vsix --extensions-dir /opt/app-root/extensions-temp && \ + code-server --install-extension /opt/app-root/bin/utils/ms-toolsai.jupyter-2024.7.0.vsix --extensions-dir /opt/app-root/extensions-temp # Install NGINX to proxy code-server and pass probes check ENV NGINX_VERSION=1.24 \ diff --git a/codeserver/ubi9-python-3.11/README.md b/codeserver/ubi9-python-3.11/README.md new file mode 100644 index 000000000..3a3f007e3 --- /dev/null +++ b/codeserver/ubi9-python-3.11/README.md @@ -0,0 +1,20 @@ +# codeserver-ubi9-python-3.11 + +To run the following image, you can use the following command: + +```bash +$ export QUAY_IO=quay.io/{myuser}/workbench-images +$ export WORKBENCH_RELEASE=2024b +$ make codeserver-ubi9-python-3.11 \ + -e IMAGE_REGISTRY=$QUAY_IO \ + -e RELEASE=$WORKBENCH_RELEASE \ + -e PUSH_IMAGES=no \ + -e CONTAINER_BUILD_CACHE_ARGS="" +``` + +To execute with Podman, do as follows: + +```bash +$ export LATEST_TAG=`podman images --format "{{.Repository}}:{{.Tag}}" | grep "$QUAY_IO:codeserver-ubi9-python-3.11-$WORKBENCH_RELEASE" | sort -r | head -n1 | cut -d':' -f2` +$ podman run -it -p 8787:8787 $QUAY_IO:$LATEST_TAG +``` diff --git a/codeserver/ubi9-python-3.11/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix b/codeserver/ubi9-python-3.11/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix deleted file mode 100644 index 3ed7304c5..000000000 Binary files a/codeserver/ubi9-python-3.11/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-python.debugpy-2024.8.0@linux-x64.vsix b/codeserver/ubi9-python-3.11/utils/ms-python.debugpy-2024.8.0@linux-x64.vsix new file mode 100644 index 000000000..a301eb628 Binary files /dev/null and b/codeserver/ubi9-python-3.11/utils/ms-python.debugpy-2024.8.0@linux-x64.vsix differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-python.python-2024.14.1.vsix b/codeserver/ubi9-python-3.11/utils/ms-python.python-2024.14.1.vsix new file mode 100644 index 000000000..242a00078 Binary files /dev/null and b/codeserver/ubi9-python-3.11/utils/ms-python.python-2024.14.1.vsix differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-python.python-2024.2.1.vsix b/codeserver/ubi9-python-3.11/utils/ms-python.python-2024.2.1.vsix deleted file mode 100644 index ce668c9f9..000000000 Binary files a/codeserver/ubi9-python-3.11/utils/ms-python.python-2024.2.1.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-2023.9.100.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-2024.7.0.vsix similarity index 60% rename from codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-2023.9.100.vsix rename to codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-2024.7.0.vsix index d53f88bbf..e39b45bd7 100644 Binary files a/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-2023.9.100.vsix and b/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-2024.7.0.vsix differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-renderers-1.0.17.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-renderers-1.0.17.vsix deleted file mode 100644 index 32f92dda2..000000000 Binary files a/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-renderers-1.0.17.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-renderers-1.0.19.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-renderers-1.0.19.vsix new file mode 100644 index 000000000..7215245be Binary files /dev/null and b/codeserver/ubi9-python-3.11/utils/ms-toolsai.jupyter-renderers-1.0.19.vsix differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.8.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.8.vsix deleted file mode 100644 index 06bc25390..000000000 Binary files a/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.8.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.9.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.9.vsix new file mode 100644 index 000000000..7d1b12e70 Binary files /dev/null and b/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.9.vsix differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.5.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.5.vsix deleted file mode 100644 index 34ba17338..000000000 Binary files a/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.5.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.6.vsix b/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.6.vsix new file mode 100644 index 000000000..cedca9e89 Binary files /dev/null and b/codeserver/ubi9-python-3.11/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.6.vsix differ diff --git a/codeserver/ubi9-python-3.9/Dockerfile b/codeserver/ubi9-python-3.9/Dockerfile index 4b40b2adc..48cfeddc4 100644 --- a/codeserver/ubi9-python-3.9/Dockerfile +++ b/codeserver/ubi9-python-3.9/Dockerfile @@ -1,7 +1,7 @@ ARG BASE_IMAGE FROM ${BASE_IMAGE} -ARG CODESERVER_VERSION=v4.22.0 +ARG CODESERVER_VERSION=v4.92.2 LABEL name="odh-notebook-code-server-ubi9-python-3.9" \ summary="code-server image with python 3.9 based on UBI 9" \ @@ -41,11 +41,10 @@ RUN chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \ COPY --chown=1001:0 utils utils/ -# Create and intall the extensions though build-time on a temporary directory. Later this directory will copied on the `/opt/app-root/src/.local/share/code-server/extensions` via run-code-server.sh file when it starts up. +# Create and intall the extensions though build-time on a temporary directory. Later this directory will copied on the `/opt/app-root/src/.local/share/code-server/extensions` via run-code-server.sh file when it starts up. RUN mkdir -p /opt/app-root/extensions-temp && \ - code-server --install-extension /opt/app-root/bin/utils/ms-python.python-2024.2.1.vsix --extensions-dir /opt/app-root/extensions-temp && \ - code-server --install-extension /opt/app-root/bin/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix --extensions-dir /opt/app-root/extensions-temp && \ - code-server --install-extension /opt/app-root/bin/utils/ms-toolsai.jupyter-2023.9.100.vsix --extensions-dir /opt/app-root/extensions-temp + code-server --install-extension /opt/app-root/bin/utils/ms-python.python-2024.14.1.vsix --extensions-dir /opt/app-root/extensions-temp && \ + code-server --install-extension /opt/app-root/bin/utils/ms-toolsai.jupyter-2024.7.0.vsix --extensions-dir /opt/app-root/extensions-temp # Install NGINX to proxy code-server and pass probes check ENV NGINX_VERSION=1.24 \ diff --git a/codeserver/ubi9-python-3.9/README.md b/codeserver/ubi9-python-3.9/README.md new file mode 100644 index 000000000..ae2dad223 --- /dev/null +++ b/codeserver/ubi9-python-3.9/README.md @@ -0,0 +1,20 @@ +# codeserver-ubi9-python-3.11 + +To run the following image, you can use the following command: + +```bash +$ export QUAY_IO=quay.io/{myuser}/workbench-images +$ export WORKBENCH_RELEASE=2024b +$ make codeserver-ubi9-python-3.9 \ + -e IMAGE_REGISTRY=$QUAY_IO \ + -e RELEASE=$WORKBENCH_RELEASE \ + -e PUSH_IMAGES=no \ + -e CONTAINER_BUILD_CACHE_ARGS="" +``` + +To execute with Podman, do as follows: + +```bash +$ export LATEST_TAG=`podman images --format "{{.Repository}}:{{.Tag}}" | grep "$QUAY_IO:codeserver-ubi9-python-3.9-$WORKBENCH_RELEASE" | sort -r | head -n1 | cut -d':' -f2` +$ podman run -it -p 8787:8787 $QUAY_IO:$LATEST_TAG +``` diff --git a/codeserver/ubi9-python-3.9/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix b/codeserver/ubi9-python-3.9/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix deleted file mode 100644 index 3ed7304c5..000000000 Binary files a/codeserver/ubi9-python-3.9/utils/ms-python.debugpy-2024.2.0@linux-x64.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-python.debugpy-2024.8.0@linux-x64.vsix b/codeserver/ubi9-python-3.9/utils/ms-python.debugpy-2024.8.0@linux-x64.vsix new file mode 100644 index 000000000..a301eb628 Binary files /dev/null and b/codeserver/ubi9-python-3.9/utils/ms-python.debugpy-2024.8.0@linux-x64.vsix differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-python.python-2024.14.1.vsix b/codeserver/ubi9-python-3.9/utils/ms-python.python-2024.14.1.vsix new file mode 100644 index 000000000..242a00078 Binary files /dev/null and b/codeserver/ubi9-python-3.9/utils/ms-python.python-2024.14.1.vsix differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-python.python-2024.2.1.vsix b/codeserver/ubi9-python-3.9/utils/ms-python.python-2024.2.1.vsix deleted file mode 100644 index ce668c9f9..000000000 Binary files a/codeserver/ubi9-python-3.9/utils/ms-python.python-2024.2.1.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-2023.9.100.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-2024.7.0.vsix similarity index 60% rename from codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-2023.9.100.vsix rename to codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-2024.7.0.vsix index d53f88bbf..e39b45bd7 100644 Binary files a/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-2023.9.100.vsix and b/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-2024.7.0.vsix differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-renderers-1.0.17.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-renderers-1.0.17.vsix deleted file mode 100644 index 32f92dda2..000000000 Binary files a/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-renderers-1.0.17.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-renderers-1.0.19.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-renderers-1.0.19.vsix new file mode 100644 index 000000000..7215245be Binary files /dev/null and b/codeserver/ubi9-python-3.9/utils/ms-toolsai.jupyter-renderers-1.0.19.vsix differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.8.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.8.vsix deleted file mode 100644 index 06bc25390..000000000 Binary files a/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.8.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.9.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.9.vsix new file mode 100644 index 000000000..7d1b12e70 Binary files /dev/null and b/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-cell-tags-0.1.9.vsix differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.5.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.5.vsix deleted file mode 100644 index 34ba17338..000000000 Binary files a/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.5.vsix and /dev/null differ diff --git a/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.6.vsix b/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.6.vsix new file mode 100644 index 000000000..cedca9e89 Binary files /dev/null and b/codeserver/ubi9-python-3.9/utils/ms-toolsai.vscode-jupyter-slideshow-0.1.6.vsix differ