diff --git a/Dockerfile b/Dockerfile index 101b3c5..1d41be3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,10 @@ LABEL maintainer="thelamer" ENV TITLE=LibreOffice RUN \ + echo "**** add icon ****" && \ + curl -o \ + /kclient/public/icon.png \ + https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/libreoffice-logo.png && \ echo "**** install packages ****" && \ if [ -z ${LIBREOFFICE_VERSION+x} ]; then \ LIBREOFFICE_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \ @@ -22,11 +26,14 @@ RUN \ st \ thunar \ tint2 && \ + echo "**** locales ****" && \ + for LOCALE in $(curl -sL https://raw.githubusercontent.com/thelamer/lang-stash/master/langs); do \ + apk add --no-cache libreoffice-lang-$(echo ${LOCALE}| tr '[:upper:]' '[:lower:]') || apk add --no-cache libreoffice-lang-$(echo ${LOCALE}| head -c2); \ + done && \ echo "**** openbox tweaks ****" && \ sed -i \ 's/NLMC/NLIMC/g' \ /etc/xdg/openbox/rc.xml && \ - sed -i 's|| \n yes\n \n|' /etc/xdg/openbox/rc.xml && \ sed -i \ '/Icon=/c Icon=xterm-color_48x48' \ /usr/share/applications/st.desktop && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 0e85c9e..a436bde 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -11,6 +11,10 @@ LABEL maintainer="thelamer" ENV TITLE=LibreOffice RUN \ + echo "**** add icon ****" && \ + curl -o \ + /kclient/public/icon.png \ + https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/libreoffice-logo.png && \ echo "**** install packages ****" && \ if [ -z ${LIBREOFFICE_VERSION+x} ]; then \ LIBREOFFICE_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \ @@ -22,11 +26,14 @@ RUN \ st \ thunar \ tint2 && \ + echo "**** locales ****" && \ + for LOCALE in $(curl -sL https://raw.githubusercontent.com/thelamer/lang-stash/master/langs); do \ + apk add --no-cache libreoffice-lang-$(echo ${LOCALE}| tr '[:upper:]' '[:lower:]') || apk add --no-cache libreoffice-lang-$(echo ${LOCALE}| head -c2); \ + done && \ echo "**** openbox tweaks ****" && \ sed -i \ 's/NLMC/NLIMC/g' \ /etc/xdg/openbox/rc.xml && \ - sed -i 's|| \n yes\n \n|' /etc/xdg/openbox/rc.xml && \ sed -i \ '/Icon=/c Icon=xterm-color_48x48' \ /usr/share/applications/st.desktop && \ diff --git a/README.md b/README.md index 9b70ce4..ea38291 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,9 @@ This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxse | FM_HOME | This is the home directory (landing) for the file manager, default "/config". | | START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. | | DRINODE | If mounting in /dev/dri for [DRI3 GPU Acceleration](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) allows you to specify the device to use IE `/dev/dri/renderD128` | +| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` | +| NO_DECOR | If set the application will run without window borders for use as a PWA. | +| NO_FULL | Do not autmatically fullscreen applications when using openbox. | #### Optional run configurations @@ -311,6 +314,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **10.02.24:** - Update Readme with new env vars and ingest proper PWA icon. * **02.01.24:** - Rebase to Alpine 3.19. * **13.05.23:** - Rebase to Alpine 3.18. * **18.03.23:** - Rebase to KasmVNC base image. diff --git a/readme-vars.yml b/readme-vars.yml index 56cde16..b17591a 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -58,6 +58,9 @@ app_setup_block: | | FM_HOME | This is the home directory (landing) for the file manager, default "/config". | | START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. | | DRINODE | If mounting in /dev/dri for [DRI3 GPU Acceleration](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) allows you to specify the device to use IE `/dev/dri/renderD128` | + | LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` | + | NO_DECOR | If set the application will run without window borders for use as a PWA. | + | NO_FULL | Do not autmatically fullscreen applications when using openbox. | #### Optional run configurations @@ -74,6 +77,7 @@ app_setup_block: | # changelog changelogs: + - { date: "10.02.24:", desc: "Update Readme with new env vars and ingest proper PWA icon." } - { date: "02.01.24:", desc: "Rebase to Alpine 3.19." } - { date: "13.05.23:", desc: "Rebase to Alpine 3.18." } - { date: "18.03.23:", desc: "Rebase to KasmVNC base image." }