Skip to content

Commit 01786cd

Browse files
author
Verdi March
committed
Feb24 update
- Pin code-server version to latest known version to work on alinux2 (glibc-2.26) - Drop jupyterlab-stickyland since it no longer work on jlab-4.1.0
1 parent 7c8d634 commit 01786cd

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

initsmnb/install-code-server.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33
set -euo pipefail
44

55
install_code_server() {
6-
local LATEST_DOWNLOAD_URL=$(
7-
curl --silent "https://api.github.com/repos/coder/code-server/releases/latest" | # Get latest release from GitHub api
8-
grep "\"browser_download_url\": \"https.*\/code-server-.*-amd64.rpm" | # Get download url
9-
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
10-
)
6+
#local LATEST_DOWNLOAD_URL=$(
7+
# curl --silent "https://api.github.com/repos/coder/code-server/releases/latest" | # Get latest release from GitHub api
8+
# grep "\"browser_download_url\": \"https.*\/code-server-.*-amd64.rpm" | # Get download url
9+
# sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
10+
#)
11+
#
12+
#local RPM=${LATEST_DOWNLOAD_URL##*/}
13+
14+
# Pin to latest known version that can still work on alinux2 (glibc-2.26)
15+
local VERSION=4.16.1
16+
local LATEST_DOWNLOAD_URL="https://github.com/coder/code-server/releases/download/v${VERSION}/code-server-${VERSION}-amd64.rpm"
17+
local RPM="code-server_${VERSION}_amd64.rpm"
1118

12-
local RPM=${LATEST_DOWNLOAD_URL##*/}
1319
aria2c -x10 --dir /tmp -o ${RPM} ${LATEST_DOWNLOAD_URL}
1420
sudo yum localinstall -y /tmp/$RPM && rm /tmp/$RPM
1521
[[ -d ~/.cache/code-server/ ]] && rm -fr ~/.cache/code-server/

initsmnb/upgrade-jupyter.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ declare -a PKGS=(
7979
jupyterlab-execute-time
8080
jupyterlab-skip-traceback
8181
jupyterlab-unfold
82-
stickyland
8382

8483
# jupyterlab_code_formatter requires formatters in its venv.
8584
# See: https://github.com/ryantam626/jupyterlab_code_formatter/issues/153
@@ -99,7 +98,6 @@ declare -a PKGS=(
9998
jupyterlab-execute-time
10099
jupyterlab-skip-traceback
101100
jupyterlab-unfold
102-
stickyland
103101
ipython_genutils # https://github.com/jupyter/nbdime/issues/621
104102

105103
# jupyterlab_code_formatter requires formatters in its venv.

0 commit comments

Comments
 (0)