Skip to content

Commit 348e34a

Browse files
fix(kasm): replace removed apt-key, fix kasm_release URL, drop missing thumbnails
The kasm release build (run 25485774052) failed at the very first 'apt-key add -' invocation because apt-key was removed from the new Ubuntu 26.04 (resolute) base image. Two further upstream changes were also broken: - The Docker GPG key is now imported via gpg --dearmor into /usr/share/keyrings and referenced through 'signed-by=' in the docker.list source, matching the modern keyring pattern. - The kasm_release tarball is no longer published as a GitHub release asset on kasmtech/kasm-install-wizard; switch to the official https://kasm-static-content.s3.amazonaws.com/kasm_release_<ver>.tar.gz URL used by upstream installer / linuxserver. - Drop the docker-image-preload step (kasm-ci.s3 images-combined tarball no longer exists for current versions and is fetched at runtime by Kasm itself), and remove the obsolete www/img/thumbnails copy + yq tweak (the thumbnails directory no longer exists in the kasm_release tarball). Co-authored-by: Crow-Control <7613738+Crow-Control@users.noreply.github.com>
1 parent 283bd21 commit 348e34a

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

apps/kasm/Dockerfile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,graphics,video,utility"
1616
# Container setup
1717
RUN \
1818
echo "**** install packages ****" && \
19-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
20-
echo "deb [arch=$TARGETARCH] https://download.docker.com/linux/ubuntu noble stable" > \
19+
install -d -m 0755 /usr/share/keyrings && \
20+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
21+
echo "deb [arch=$TARGETARCH signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu noble stable" > \
2122
/etc/apt/sources.list.d/docker.list && \
2223
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
2324
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
@@ -72,29 +73,17 @@ RUN \
7273
echo "**** add installer ****" && \
7374
curl -o \
7475
/tmp/kasm.tar.gz -L \
75-
"https://github.com/kasmtech/kasm-install-wizard/releases/download/${VERSION}/kasm_release.tar.gz" && \
76+
"https://kasm-static-content.s3.amazonaws.com/kasm_release_${VERSION}.tar.gz" && \
7677
tar xf \
7778
/tmp/kasm.tar.gz -C \
7879
/ && \
7980
ALVERSION=$(cat /kasm_release/conf/database/seed_data/default_properties.yaml |awk '/alembic_version/ {print $2}') && \
80-
curl -o \
81-
/tmp/images.tar.gz -L \
82-
"https://kasm-ci.s3.amazonaws.com/${VERSION}-images-combined.tar.gz" && \
83-
tar xf \
84-
/tmp/images.tar.gz -C \
85-
/ && \
8681
sed -i \
8782
'/alembic_version/s/.*/alembic_version: '${ALVERSION}'/' \
8883
/kasm_release/conf/database/seed_data/default_images_a* && \
8984
sed -i 's/-N -e -H/-N -B -e -H/g' /kasm_release/upgrade.sh && \
9085
echo "exit 0" > /kasm_release/install_dependencies.sh && \
91-
/kasm_release/bin/utils/yq_$(uname -m) -i \
92-
'.services.proxy.volumes += "/kasm_release/www/img/thumbnails:/srv/www/img/thumbnails"' \
93-
/kasm_release/docker/docker-compose-all.yaml && \
9486
echo "**** copy assets ****" && \
95-
cp \
96-
/kasm_release/www/img/thumbnails/*.png /kasm_release/www/img/thumbnails/*.svg \
97-
/wizard/public/img/thumbnails/ && \
9887
cp \
9988
/kasm_release/conf/database/seed_data/default_images_a* \
10089
/wizard/ && \

0 commit comments

Comments
 (0)