Migrate to s6v3

This commit is contained in:
TheSpad 2022-10-17 20:19:48 +01:00
parent fa3bd6eee7
commit 689beff96b
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
36 changed files with 29 additions and 20 deletions

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-arch:3d4daa98-ls73 as buildstage
FROM ghcr.io/linuxserver/baseimage-arch:latest as buildstage
RUN \
echo "**** install build deps ****" && \
@ -33,7 +33,7 @@ RUN \
FROM ghcr.io/linuxserver/docker-compose:amd64-latest as compose
# runtime stage
FROM ghcr.io/linuxserver/baseimage-arch:3d4daa98-ls73
FROM ghcr.io/linuxserver/baseimage-arch:latest
# set version label
ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-3d4daa98-ls73 as buildstage
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-latest as buildstage
RUN \
echo "**** install build deps ****" && \
@ -33,7 +33,7 @@ RUN \
FROM ghcr.io/linuxserver/docker-compose:amd64-latest as compose
# runtime stage
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-3d4daa98-ls73
FROM ghcr.io/linuxserver/baseimage-arch:arm64v8-latest
# set version label
ARG BUILD_DATE

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-arch:arm32v7-3d4daa98-ls73 as buildstage
FROM ghcr.io/linuxserver/baseimage-arch:arm32v7-latest as buildstage
RUN \
echo "**** install build deps ****" && \
@ -33,7 +33,7 @@ RUN \
FROM ghcr.io/linuxserver/docker-compose:amd64-latest as compose
# runtime stage
FROM ghcr.io/linuxserver/baseimage-arch:arm32v7-3d4daa98-ls73
FROM ghcr.io/linuxserver/baseimage-arch:arm32v7-latest
# set version label
ARG BUILD_DATE

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-keygen/run

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
# This file doesn't do anything, it's just the end of the rdesktop base init process

View File

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bash
if [ ! -e /lock.file ]; then
if [[ ! -e /lock.file ]]; then
# give abc a sudo shell
chsh abc -s /bin/bash
sed -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' \
@ -12,12 +12,14 @@ fi
touch /lock.file
# default file copies first run
[[ ! -d /config/.config ]] && \
mkdir -p /config/.config && \
cp /defaults/bashrc /config/.bashrc && \
cp /defaults/startwm.sh /config/startwm.sh
if [[ ! -d /config/.config ]]; then
mkdir -p /config/.config
cp /defaults/bashrc /config/.bashrc
cp /defaults/startwm.sh /config/startwm.sh
fi
# permissions
PERM=$(stat -c '%U' /config/.config)
[[ "${PERM}" != "abc" ]] && \
chown -R abc:abc /config
if [[ "${PERM}" != "abc" ]]; then
chown -R abc:abc /config
fi

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-rdesktop/run

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-video/run

View File

@ -0,0 +1 @@
4

View File

@ -4,6 +4,6 @@
fdmove -c 2 1
# Notify service manager when xrdp is up
s6-notifyoncheck -w 500 -c "true &>/dev/null </dev/tcp/127.0.0.1/3350"
s6-notifyoncheck -w 500 -c "nc -z localhost 3350"
/usr/sbin/xrdp-sesman --nodaemon

View File

@ -0,0 +1 @@
longrun

View File

@ -4,10 +4,7 @@
fdmove -c 2 1
# Notify service manager when xrdp is up
s6-notifyoncheck -w 500 -c "true &>/dev/null </dev/tcp/127.0.0.1/3389"
# Wait until other services are running
if { s6-svwait -t 10000 -U /var/run/s6/services/xrdp-sesman/ }
s6-notifyoncheck -w 500 -c "nc -z localhost 3389"
# set env
s6-env DISPLAY=:1

View File

@ -0,0 +1 @@
longrun

View File

@ -1 +0,0 @@
3

View File

@ -1,7 +1,7 @@
#!/bin/bash
while :
do
if [[ ! `/usr/bin/pulseaudio --check` ]]; then
if [[ ! $(/usr/bin/pulseaudio --check) ]]; then
/usr/bin/pulseaudio --start
fi
sleep 10