Merge branch 'feature/KASM-6027-alpine-320' into 'develop'

Resolve KASM-6027 "Feature/ alpine 320"

Closes KASM-6027

See merge request kasm-technologies/internal/workspaces-core-images!201
This commit is contained in:
Richard Koliser 2024-06-04 18:02:19 +00:00
commit 07a742518b
10 changed files with 46 additions and 6 deletions

View File

@ -378,6 +378,20 @@ multiImages:
- src/alpine/xfce/.config/xfce4/** - src/alpine/xfce/.config/xfce4/**
- src/alpine/xfce/.config/xfce4/xfconf/** - src/alpine/xfce/.config/xfce4/xfconf/**
- src/alpine/xfce/.config/xfce4/xfconf/xfce-perchannel-xml/** - src/alpine/xfce/.config/xfce4/xfconf/xfce-perchannel-xml/**
- name1: alpine
name2: 320
base: alpine:3.20
bg: bg_alpine.png
distro: alpine
dockerfile: dockerfile-kasm-core-alpine
changeFiles:
- dockerfile-kasm-core-alpine
- src/alpine/**
- src/alpine/xfce/**
- src/alpine/xfce/.config/**
- src/alpine/xfce/.config/xfce4/**
- src/alpine/xfce/.config/xfce4/xfconf/**
- src/alpine/xfce/.config/xfce4/xfconf/xfce-perchannel-xml/**
singleImages: singleImages:
- name1: cuda - name1: cuda
name2: focal name2: focal

View File

@ -0,0 +1,7 @@
# About This Image
This image contains a browser-accessible version of Alpine 3.20.
![Screenshot][Image_Screenshot]
[Image_Screenshot]: https://5856039.fs1.hubspotusercontent-na1.net/hubfs/5856039/dockerhub/image-screenshots/alpine-317-core.png "Image Screenshot"

View File

@ -0,0 +1,9 @@
# Live Demo
**Launch a real-time demo in a new browser window:** <a href="https://app.kasmweb.com/#/cast/1481835260" target="_blank">Live Demo</a>.
<a href="https://app.kasmweb.com/#/cast/1481835260" target="_blank"><img src="https://5856039.fs1.hubspotusercontent-na1.net/hub/5856039/hubfs/dockerhub/casting-buttons/CoreUbuntuJammy.png" width="300" height="104"></a>
&lowast;*This demo links to a Jammy Desktop image to show the basic functionality of Kasm Workspaces.*
&lowast;*Note: Demo is limited to 3 minutes and has upload/downloads restricted for security purposes.*

View File

@ -0,0 +1 @@
Alpine 3.20 base image for Kasm Workspaces

View File

@ -46,7 +46,7 @@ elif [ "${DISTRO}" == "opensuse" ]; then
zypper install -ny curl git zypper install -ny curl git
zypper install -yn ffmpeg pulseaudio-utils zypper install -yn ffmpeg pulseaudio-utils
elif [ "${DISTRO}" == "alpine" ]; then elif [ "${DISTRO}" == "alpine" ]; then
if grep -q v3.19 /etc/os-release; then if grep -q v3.19 /etc/os-release || grep -q v3.20 /etc/os-release; then
apk add --no-cache \ apk add --no-cache \
ffmpeg \ ffmpeg \
ffplay \ ffplay \

View File

@ -17,7 +17,7 @@ echo "Install KasmVNC server"
cd /tmp cd /tmp
BUILD_ARCH=$(uname -p) BUILD_ARCH=$(uname -p)
UBUNTU_CODENAME="" UBUNTU_CODENAME=""
COMMIT_ID="511e2ae542e95f5447a0a145bb54ced968e6cfec" COMMIT_ID="9f7a6b58cedaa8637e9274e428a498e023b0fc2f"
BRANCH="master" # just use 'release' for a release branch BRANCH="master" # just use 'release' for a release branch
KASMVNC_VER="1.3.2" KASMVNC_VER="1.3.2"
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6) COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)
@ -96,7 +96,13 @@ elif [[ "${DISTRO}" = @(debian|parrotos6) ]] ; then
fi fi
fi fi
elif [[ "${DISTRO}" == "alpine" ]] ; then elif [[ "${DISTRO}" == "alpine" ]] ; then
if grep -q v3.19 /etc/os-release; then if grep -q v3.20 /etc/os-release; then
if [[ "$(arch)" =~ ^x86_64$ ]] ; then
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/output/alpine_320/kasmvnc.alpine_320_x86_64.tgz"
else
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/output/alpine_320/kasmvnc.alpine_320_aarch64.tgz"
fi
elif grep -q v3.19 /etc/os-release; then
if [[ "$(arch)" =~ ^x86_64$ ]] ; then if [[ "$(arch)" =~ ^x86_64$ ]] ; then
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/output/alpine_319/kasmvnc.alpine_319_x86_64.tgz" BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/${COMMIT_ID}/output/alpine_319/kasmvnc.alpine_319_x86_64.tgz"
else else

View File

@ -13,6 +13,7 @@ elif [ "${DISTRO}" == "opensuse" ]; then
elif [ "${DISTRO}" == "alpine" ]; then elif [ "${DISTRO}" == "alpine" ]; then
echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
apk add --no-cache cups cups-client cups-pdf@testing apk add --no-cache cups cups-client cups-pdf@testing
usermod -a -G lpadmin root
else else
apt-get update apt-get update
apt-get install -y cups cups-client cups-pdf apt-get install -y cups cups-client cups-pdf

View File

@ -48,6 +48,9 @@ handle_other_distros_conversion() {
if grep -q 'v3.19' /etc/os-release; then if grep -q 'v3.19' /etc/os-release; then
profile_distro="alpine_319" profile_distro="alpine_319"
fi fi
if grep -q 'v3.20' /etc/os-release; then
profile_distro="alpine_320"
fi
;; ;;
rockylinux*) rockylinux*)
profile_distro=$(echo "$profile_distro" | sed -e 's/linux//') profile_distro=$(echo "$profile_distro" | sed -e 's/linux//')
@ -80,7 +83,7 @@ download_and_symlink() {
ARCH=$(arch) ARCH=$(arch)
BRANCH="develop" BRANCH="develop"
COMMIT_ID="a1ffc539ae2c42eda1bcbc5a16e352f241e94a7c" COMMIT_ID="42424ea385a0d10fa7bb5749e207ee70b2a44ae2"
convert_local_distro_to_profile_sync_distro convert_local_distro_to_profile_sync_distro
check_distro_is_supported check_distro_is_supported

View File

@ -51,7 +51,7 @@ elif [[ "${DISTRO}" == @(rockylinux9|oracle9|almalinux9) ]]; then
elif [[ "${DISTRO}" == @(centos|oracle7) ]]; then elif [[ "${DISTRO}" == @(centos|oracle7) ]]; then
yum install -y openssl11-libs yum install -y openssl11-libs
elif [[ "${DISTRO}" == "alpine" ]]; then elif [[ "${DISTRO}" == "alpine" ]]; then
if grep -q v3.19 /etc/os-release; then if grep -q v3.19 /etc/os-release || grep -q v3.20 /etc/os-release; then
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing openssl1.1-compat apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing openssl1.1-compat
else else
apk add --no-cache openssl1.1-compat apk add --no-cache openssl1.1-compat

View File

@ -39,7 +39,6 @@ if [ "${DISTRO}" == "kali" ]; then
atril \ atril \
dbus-x11 \ dbus-x11 \
engrampa \ engrampa \
kali-debtags \
kali-defaults-desktop \ kali-defaults-desktop \
kali-menu \ kali-menu \
kali-themes \ kali-themes \