mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-17 21:36:20 +00:00
Consolidate plasma build files
This commit is contained in:
parent
e008c61987
commit
d086ed3138
5 changed files with 24 additions and 36 deletions
|
|
@ -12,7 +12,7 @@ ARG debug
|
||||||
COPY mirrorlist /etc/pacman.d/mirrorlist
|
COPY mirrorlist /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# Copy app folder
|
# Copy app folder
|
||||||
COPY app /app
|
COPY entrypoint /entrypoint
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
|
RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
|
||||||
|
|
@ -54,4 +54,4 @@ ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
||||||
|
|
||||||
# Docker entrypoint
|
# Docker entrypoint
|
||||||
ENTRYPOINT ["/app/entrypoint"]
|
ENTRYPOINT ["/entrypoint"]
|
||||||
|
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Export all variables
|
|
||||||
set -a
|
|
||||||
|
|
||||||
# Abort if an error is encountered
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# SSH config
|
|
||||||
if [ -f ~/.ssh/id_ed25519 ]
|
|
||||||
then
|
|
||||||
chmod 0600 ~/.ssh/id_ed25519
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Run all scripts in init folder
|
|
||||||
for file in /app/init.d/*.sh
|
|
||||||
do
|
|
||||||
/usr/bin/bash -c ${file} >>/app/logs/$(echo ${file} | sed 's|/app/init.d/||;s|\.sh$||').log
|
|
||||||
done
|
|
||||||
|
|
||||||
# Read cli parameters
|
|
||||||
exec "${@}" &
|
|
||||||
|
|
||||||
# Monitor log
|
|
||||||
tail -f /app/logs/*.log
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Create base directories
|
|
||||||
for dir in ssh config/tigervnc
|
|
||||||
do
|
|
||||||
[ -d ~/.${dir} ] || mkdir -p ~/.${dir}
|
|
||||||
done
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Launch Tigervnc
|
|
||||||
/usr/bin/dbus-launch vncserver :0 &
|
|
||||||
|
|
@ -1,4 +1,22 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# Export all variables
|
||||||
|
set -a
|
||||||
|
|
||||||
|
# Abort if an error is encountered
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# SSH config
|
||||||
|
if [ -f ~/.ssh/id_ed25519 ]
|
||||||
|
then
|
||||||
|
chmod 0600 ~/.ssh/id_ed25519
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create base directories
|
||||||
|
for dir in ssh config/tigervnc
|
||||||
|
do
|
||||||
|
[ -d ~/.${dir} ] || mkdir -p ~/.${dir}/
|
||||||
|
done
|
||||||
|
|
||||||
# Check for MYVNC_VNCPASS variable
|
# Check for MYVNC_VNCPASS variable
|
||||||
if [ -z ${MYVNC_VNCPASS} ]
|
if [ -z ${MYVNC_VNCPASS} ]
|
||||||
then
|
then
|
||||||
|
|
@ -18,7 +36,7 @@ unset MYVNC_VNCPASS
|
||||||
|
|
||||||
# VNC xstartup
|
# VNC xstartup
|
||||||
install /dev/stdin ~/.config/tigervnc/xstartup <<- xstartup
|
install /dev/stdin ~/.config/tigervnc/xstartup <<- xstartup
|
||||||
#!/usr/bin/env bash
|
|
||||||
unset SESSION_MANAGER
|
unset SESSION_MANAGER
|
||||||
unset DBUS_SESSION_BUS_ADDRESS
|
unset DBUS_SESSION_BUS_ADDRESS
|
||||||
exec ${STARTXBIN}
|
exec ${STARTXBIN}
|
||||||
|
|
@ -49,3 +67,6 @@ Autolock=false
|
||||||
LockOnResume=false
|
LockOnResume=false
|
||||||
Timeout=0
|
Timeout=0
|
||||||
kscreenlockerrc
|
kscreenlockerrc
|
||||||
|
|
||||||
|
# Launch Tigervnc
|
||||||
|
/usr/bin/dbus-launch vncserver :0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue