Skip to content

Commit 611a9d2

Browse files
committed
add selkies desktop arch
1 parent 70d0b39 commit 611a9d2

3 files changed

Lines changed: 55 additions & 1 deletion

File tree

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ RUN \
6868
build/wtype \
6969
/usr/sbin/wtype
7070

71+
FROM ghcr.io/linuxserver/baseimage-arch:latest AS selkies-desktop
72+
73+
RUN \
74+
echo "**** selkies-desktop build deps ****" && \
75+
pacman -Sy --noconfirm \
76+
base-devel \
77+
cairo \
78+
git \
79+
wayland \
80+
wayland-protocols
81+
82+
RUN \
83+
echo "**** build selkies-desktop ****" && \
84+
cd /tmp && \
85+
git clone \
86+
https://github.com/selkies-project/selkies-desktop.git && \
87+
cd selkies-desktop && \
88+
make && \
89+
mv \
90+
selkies-desktop \
91+
/usr/bin/selkies-desktop
92+
7193
# Runtime stage
7294
FROM ghcr.io/linuxserver/baseimage-arch:latest
7395

@@ -300,6 +322,7 @@ COPY /root /
300322
COPY --from=frontend /buildout /usr/share/selkies
301323
COPY --from=xvfb / /
302324
COPY --from=wtype /usr/sbin/wtype /usr/sbin/wtype
325+
COPY --from=selkies-desktop /usr/bin/selkies-desktop /usr/bin/selkies-desktop
303326

304327
# ports and volumes
305328
EXPOSE 3000 3001

Dockerfile.aarch64

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ RUN \
6868
build/wtype \
6969
/usr/sbin/wtype
7070

71+
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-latest AS selkies-desktop
72+
73+
RUN \
74+
echo "**** selkies-desktop build deps ****" && \
75+
pacman -Sy --noconfirm \
76+
base-devel \
77+
cairo \
78+
git \
79+
wayland \
80+
wayland-protocols
81+
82+
RUN \
83+
echo "**** build selkies-desktop ****" && \
84+
cd /tmp && \
85+
git clone \
86+
https://github.com/selkies-project/selkies-desktop.git && \
87+
cd selkies-desktop && \
88+
make && \
89+
mv \
90+
selkies-desktop \
91+
/usr/bin/selkies-desktop
92+
7193
# Runtime stage
7294
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-latest
7395

@@ -297,6 +319,7 @@ COPY /root /
297319
COPY --from=frontend /buildout /usr/share/selkies
298320
COPY --from=xvfb / /
299321
COPY --from=wtype /usr/sbin/wtype /usr/sbin/wtype
322+
COPY --from=selkies-desktop /usr/bin/selkies-desktop /usr/bin/selkies-desktop
300323

301324
# ports and volumes
302325
EXPOSE 3000 3001

root/defaults/startwm_wayland.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@ export XCURSOR_SIZE=24
77
export XKB_DEFAULT_LAYOUT=us
88
export XKB_DEFAULT_RULES=evdev
99
export WAYLAND_DISPLAY=wayland-1
10-
labwc > /dev/null 2>&1
10+
if [ "${SELKIES_DESKTOP}" == "true" ]; then
11+
labwc > /dev/null 2>&1 &
12+
sleep 1
13+
export WAYLAND_DISPLAY=wayland-0
14+
export DISPLAY=:0
15+
selkies-desktop
16+
else
17+
labwc > /dev/null 2>&1
18+
fi

0 commit comments

Comments
 (0)