Update plasma compose to use build

This commit is contained in:
Myve 2024-07-23 00:57:24 +00:00
commit b0231dfed2
4 changed files with 14 additions and 9 deletions

View file

@ -1,5 +1,6 @@
# .env for myvnc KDE plasma webtop
MYVNC_KDEPLASMA_VNCPASS=
MYVNC_KDEPLASMA_PORT=
MYVNC_KDEPLASMA_VNCPASS=
MYVNC_KDEPLASMA_CUSTOM_TITLE=
MYVNC_KDEPLASMA_PROXYPATH=

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash
# Docker build
# Optional: buildtag
DOCKER_BUILDKIT=1 \
docker build . \
--tag ${buildtag:-myvnc/webtop:plasma}
# DOCKER_BUILDKIT=1 \
# docker build . \
# --tag ${buildtag:-myvnc/webtop:plasma}
docker compose up --build --detach

View file

@ -3,6 +3,8 @@ services:
image: myvnc/webtop:plasma
container_name: kdeplasma
restart: unless-stopped
build:
context: .
environment:
MYVNC_VNCPASS: ${MYVNC_KDEPLASMA_VNCPASS}
networks:
@ -26,9 +28,10 @@ services:
environment:
MYVNC_CUSTOM_TITLE: ${MYVNC_KDEPLASMA_CUSTOM_TITLE}
MYVNC_PROXYPATH: ${MYVNC_KDEPLASMA_PROXYPATH}
MYVNC_VNCSHARING: false
MYVNC_VNCLISTEN_HOST: kdeplasma
MYVNC_VNCLISTEN_PORT: 5900
MYVNC_VNCSHARING: false
networks:
- kdeplasma

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash
# Create required home directories
[ -d ~/.vnc ] || mkdir -p ~/.vnc
[ -d ~/.ssh ] || mkdir -p ~/.ssh
[ -d ~/.config ] || mkdir -p ~/.config
# Check for MYVNC_VNCPASS variable
@ -39,7 +40,6 @@ fi
# VNC config
cat >~/.vnc/config <<- vncconfig
session=plasmax11
dpi=192
geometry=1920x1080
framerate=60
depth=32