second commit
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM ubuntu:jammy as base
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update
|
||||
|
||||
# Build tools
|
||||
RUN apt-get install -y git build-essential libtool autotools-dev automake cmake nasm
|
||||
RUN apt-get install -y x11vnc libx11-dev libxext-dev xvfb
|
||||
RUN apt-get install -y libpam0g-dev
|
||||
RUN apt-get install -y python3
|
||||
|
||||
FROM base as sources
|
||||
ADD https://github.com/libjpeg-turbo/libjpeg-turbo.git /tmp/turbojpeg
|
||||
ADD https://github.com/TurboVNC/turbovnc.git /tmp/turbovnc
|
||||
|
||||
FROM sources as build
|
||||
WORKDIR "/tmp/turbojpeg/build"
|
||||
RUN cmake -G"Unix Makefiles" ..
|
||||
RUN make -j4 && make install
|
||||
|
||||
WORKDIR "/tmp/turbovnc/build"
|
||||
RUN cmake -G"Unix Makefiles" -DTVNC_BUILDVIEWER:BOOL=false ..
|
||||
RUN make -j4 && make install
|
||||
|
||||
RUN apt-get install -y icewm
|
||||
RUN apt-get install -y x11-apps
|
||||
|
||||
# develop only
|
||||
RUN apt-get install -y net-tools socat
|
||||
|
||||
EXPOSE 5900
|
||||
|
||||
COPY app/*.sh /app/
|
||||
CMD ["/app/app.sh"]
|
||||
|
||||
# https://dunedlin.wordpress.com/2020/10/24/a-minimal-x11-install/
|
||||
# https://askubuntu.com/questions/1313445/how-do-i-install-vnc-on-a-headless-ubuntu-20-10
|
||||
# https://github.com/mviereck/x11docker/wiki/How-to-access-X-over-TCP-IP-network
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
bail()
|
||||
{
|
||||
while true; do
|
||||
sleep 1
|
||||
done;
|
||||
}
|
||||
|
||||
export DISPLAY=:$DISPLAY_NUM
|
||||
echo Hallo at $DISPLAY
|
||||
exec Xvfb $DISPLAY -screen 0 1024x768x24 &
|
||||
exec icewm-session &
|
||||
exec socat TCP-LISTEN:60$DISPLAY_NUM,fork,bind=0.0.0.0 UNIX-CONNECT:/tmp/.X11-unix/X$DISPLAY_NUM &
|
||||
exec x11vnc -display $DISPLAY -forever -noxdamage -shared
|
||||
@@ -0,0 +1,3 @@
|
||||
#/bin/bash
|
||||
|
||||
docker run --rm --net bridge -p 5910:5900/tcp -e DISPLAY=:99 -it xserver-vnc bash --login
|
||||
Reference in New Issue
Block a user