Skip to content
Snippets Groups Projects
Unverified Commit 8d158188 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

update kde branch to current version

parent b9b0a4bd
No related branches found
No related tags found
No related merge requests found
FROM lscr.io/linuxserver/webtop:ubuntu-kde FROM --platform=${TARGETPLATFORM} lscr.io/linuxserver/webtop:ubuntu-kde
## environment settings
ENV HOME="/config"
ENV TZ=Europe/Paris
ARG DEBIAN_FRONTEND=noninteractive
RUN \ RUN \
echo "**** install runtime dependencies ****" && \ echo "**** install needed tools and dependencies ****" && \
apt-get update && \ apt-get update && \
apt-get upgrade -y && \
apt-get install -y \ apt-get install -y \
nginx \ nextcloud-desktop \
apache2-utils unzip \
zip
RUN \
sed -i 's/worker_processes auto;/worker_processes 1;/' /etc/nginx/nginx.conf
RUN \ RUN \
echo "**** clean up ****" && \ echo "**** clean up ****" && \
...@@ -21,8 +25,16 @@ RUN \ ...@@ -21,8 +25,16 @@ RUN \
## add local files ## add local files
COPY /root / COPY /root /
## /config will be a docker volume, initially empty
## wrapper_script will do the copy from /init-config
## but /config must exist fort the mount
RUN \
chown -R abc:abc /config && \
mv /config /init-config && \
mkdir /config && \
chown -R abc:abc /config
## launch ## launch
ENTRYPOINT ["/bin/bash", "/usr/local/lib/wrapper_script.sh"] ENTRYPOINT ["/bin/bash", "/usr/local/lib/wrapper_script.sh"]
## nginx reverse proxy
EXPOSE 3080
# docker-webtop # docker-webtop
## Why ## Why
This image is a base image for a full linux running either on a local docker or on MyDocker. This image is a base image for a linux with a GUI running either on a local docker or on MyDocker.
It is based on [WebTop image from LinuxServer.io](https://github.com/linuxserver/docker-webtop) It is based on [WebTop image from LinuxServer.io](https://github.com/linuxserver/docker-webtop)
which is maintained and quite often updated. which is maintained and quite often updated.
This image use Ubuntu 20.04 and the KDE environment. This image use Ubuntu 22.04 and the [KDE](https://kde.org/fr/) environment.
## Changes ## Changes
- For deployment on MyDocker, an nginx WebSocket reverse proxy with http basic authentification - Nextcloud and some basic tools (unzip, zip) added.
has been added. Trying to use the PASSWORD setting of [guacamole client From Linuxserver](https://github.com/linuxserver/gclient)
was not succesful.
## Details ## Details
- The exposed ports are 3000 (VNC with a Web Browser), 3080 (nginx reverse proxy) and 3089 - The exposed ports are 3000 (HTTP/VNC) and 3001 (HTTPS/VNC).
(RDP) - The user folder is `/config`.
- The user folder is `/config` - the user is `abc`, its password also, sudo is without password.
- the user and sudo password is `abc`
- if docker is installed on your computer, you can run (amd64 or arm64 architecture) this - if docker is installed on your computer, you can run (amd64 or arm64 architecture) this
image, assuming you are in a specific folder that will be shared with the container at image, assuming you are in a specific folder that will be shared with the container at
`/config`, with: `/config`, with:
......
server {
listen 3080 default_server;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 120s;
}
}
server {
listen 3080 default_server;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 120s;
auth_basic "Username is abc";
auth_basic_user_file /etc/nginx/htpasswd;
}
}
7
\ No newline at end of file
#!/command/execlineb -P
nginx -g "daemon off;"
longrun
\ No newline at end of file
#!/bin/bash #!/bin/bash
rm /etc/nginx/sites-enabled/default cp -TRn /init-config/ /config
if [ -z $2 ]; then chown -R abc:abc /config
ln -s /etc/nginx/sites-available/default.local /etc/nginx/sites-enabled/default
else # MyDocker send a username to $1 and a password to $2
ln -s /etc/nginx/sites-available/default.mydocker /etc/nginx/sites-enabled/default if [ "$2" ]; then
# <password> is ${2} export CUSTOM_USER=$1
htpasswd -bc /etc/nginx/htpasswd abc "${2}" export PASSWORD=$2
fi fi
exec /init exec /init
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment