Skip to content

Commit 002fd53

Browse files
committed
Code Server update to version 4.92.2
- Fix codeserver extension typo - Update Code Server to version 4.92.2 - Add instructions to run Code Server containers and how to update extensions - Minor change in extensions README instructions - Update extensions and add instructions on how to update extensions in the repository
1 parent c37956c commit 002fd53

27 files changed

+76
-9
lines changed

codeserver/Extensions.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Code - Extensions
2+
3+
Our code-server image will provide an easy way for users to deploy a code instance with AI focused extensions.
4+
5+
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)
6+
7+
> 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.
8+
>
9+
> All extension files are available inside the `ubiX-python-Y/utils/` directory, but only the main ones will be installed.
10+
11+
List of extensions used:
12+
13+
- Python [ms-python.python]
14+
- Python Debugger [ms-python.debugpy]
15+
- Jupyter [ms-toolsai.jupyter]
16+
- Jupyter Keymap [ms-toolsai.jupyter-keymap]
17+
- Jupyter Notebook Renderers [ms-toolsai.jupyter-renderers]
18+
- Jupyter Cell Tags [ms-toolsai.vscode-jupyter-cell-tags]
19+
- Jupyter Slide Show [ms-toolsai.vscode-jupyter-slideshow]
20+
21+
## Update process
22+
23+
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.
24+
25+
1. Run a code-server image
26+
2. Search for the desired extensions on the `extensions` tab
27+
3. Search for the desired version of the extension that you want to install
28+
4. Under `Resources`, you can click on `Marketplace` to see more details on `Open VSX Registry`
29+
1. On `Open VSX Registry` you can select a specific version or click on `Download` to download the `vsix` file

codeserver/ubi9-python-3.11/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG BASE_IMAGE
22
FROM ${BASE_IMAGE}
33

4-
ARG CODESERVER_VERSION=v4.22.0
4+
ARG CODESERVER_VERSION=v4.92.2
55

66
LABEL name="odh-notebook-code-server-ubi9-python-3.11" \
77
summary="code-server image with python 3.11 based on UBI 9" \
@@ -43,9 +43,8 @@ COPY --chown=1001:0 utils utils/
4343

4444
# 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.
4545
RUN mkdir -p /opt/app-root/extensions-temp && \
46-
code-server --install-extension /opt/app-root/bin/utils/ms-python.python-2024.2.1.vsix --extensions-dir /opt/app-root/extensions-temp && \
47-
code-server --install-extension /opt/app-root/bin/utils/[email protected] --extensions-dir /opt/app-root/extensions-temp && \
48-
code-server --install-extension /opt/app-root/bin/utils/ms-toolsai.jupyter-2023.11.100.vsix --extensions-dir /opt/app-root/extensions-temp
46+
code-server --install-extension /opt/app-root/bin/utils/ms-python.python-2024.14.1.vsix --extensions-dir /opt/app-root/extensions-temp && \
47+
code-server --install-extension /opt/app-root/bin/utils/ms-toolsai.jupyter-2024.7.0.vsix --extensions-dir /opt/app-root/extensions-temp
4948

5049
# Install NGINX to proxy code-server and pass probes check
5150
ENV NGINX_VERSION=1.24 \

codeserver/ubi9-python-3.11/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# codeserver-ubi9-python-3.11
2+
3+
To run the following image, you can use the following command:
4+
5+
```bash
6+
$ export QUAY_IO=quay.io/{myuser}/workbench-images
7+
$ export WORKBENCH_RELEASE=2024b
8+
$ make codeserver-ubi9-python-3.11 \
9+
-e IMAGE_REGISTRY=$QUAY_IO \
10+
-e RELEASE=$WORKBENCH_RELEASE \
11+
-e PUSH_IMAGES=no \
12+
-e CONTAINER_BUILD_CACHE_ARGS=""
13+
```
14+
15+
To execute with Podman, do as follows:
16+
17+
```bash
18+
$ 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`
19+
$ podman run -it -p 8787:8787 $QUAY_IO:$LATEST_TAG
20+
```
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)