Skip to content

Commit 818aa2d

Browse files
committed
add PWA icon , update readme, rebase to 3.19
1 parent 1b10a66 commit 818aa2d

File tree

7 files changed

+54
-12
lines changed

7 files changed

+54
-12
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_KRITA_MASTER\". ****"
2121
echo "External trigger running off of master branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_KRITA_MASTER\`" >> $GITHUB_STEP_SUMMARY
2222
echo "**** Retrieving external version ****"
23-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
23+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2424
&& awk '/^P:'"krita"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2525
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2626
echo "**** Can't retrieve external version, exiting ****"
@@ -74,7 +74,7 @@ jobs:
7474
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
7575
echo "Version ${EXT_RELEASE} already pushed, exiting" >> $GITHUB_STEP_SUMMARY
7676
exit 0
77-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"krita"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
77+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"krita"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
7878
echo "**** New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting ****"
7979
echo "New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
8080
FAILURE_REASON="New version ${EXT_RELEASE} for krita tag latest is detected, however not all arch repos are updated yet. Will try again later."

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-kasmvnc:alpine318
1+
FROM ghcr.io/linuxserver/baseimage-kasmvnc:alpine319
22

33
# set version label
44
ARG BUILD_DATE
@@ -11,14 +11,17 @@ LABEL maintainer="thelamer"
1111
ENV TITLE=Krita
1212

1313
RUN \
14+
echo "**** add icon ****" && \
15+
curl -o \
16+
/kclient/public/icon.png \
17+
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/krita-logo.png && \
1418
echo "**** install packages ****" && \
1519
if [ -z ${KRITA_VERSION+x} ]; then \
16-
KRITA_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
20+
KRITA_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
1721
&& awk '/^P:krita$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
1822
fi && \
1923
apk add --no-cache \
2024
krita==${KRITA_VERSION} && \
21-
sed -i 's|</applications>| <application title="Krita*" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
2225
echo "**** cleanup ****" && \
2326
rm -rf \
2427
/tmp/*

Dockerfile.aarch64

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-alpine318
1+
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-alpine319
22

33
# set version label
44
ARG BUILD_DATE
@@ -11,14 +11,17 @@ LABEL maintainer="thelamer"
1111
ENV TITLE=Krita
1212

1313
RUN \
14+
echo "**** add icon ****" && \
15+
curl -o \
16+
/kclient/public/icon.png \
17+
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/krita-logo.png && \
1418
echo "**** install packages ****" && \
1519
if [ -z ${KRITA_VERSION+x} ]; then \
16-
KRITA_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
20+
KRITA_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
1721
&& awk '/^P:krita$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
1822
fi && \
1923
apk add --no-cache \
2024
krita==${KRITA_VERSION} && \
21-
sed -i 's|</applications>| <application title="Krita*" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
2225
echo "**** cleanup ****" && \
2326
rm -rf \
2427
/tmp/*

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pipeline {
2525
DEV_DOCKERHUB_IMAGE = 'lsiodev/krita'
2626
PR_DOCKERHUB_IMAGE = 'lspipepr/krita'
2727
DIST_IMAGE = 'alpine'
28-
DIST_TAG = '3.18'
29-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.18/community/'
28+
DIST_TAG = '3.19'
29+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/community/'
3030
DIST_REPO_PACKAGES = 'krita'
3131
MULTIARCH = 'true'
3232
CI = 'true'

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxse
8181
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
8282
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
8383
| 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` |
84+
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
85+
| NO_DECOR | If set the application will run without window borders for use as a PWA. |
86+
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
8487

8588
#### Optional run configurations
8689

@@ -90,6 +93,20 @@ This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxse
9093
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. |
9194
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated appplications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
9295

96+
### Language Support - Internationalization
97+
98+
The environment variable `LC_ALL` can be used to start this image in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
99+
100+
To install cjk fonts on startup as an example pass the environment variables:
101+
102+
```
103+
-e DOCKER_MODS=linuxserver/mods:universal-package-install
104+
-e INSTALL_PACKAGES=font-noto-cjk
105+
-e LC_ALL=zh_CN.UTF-8
106+
```
107+
108+
The web interface has the option for "IME Input Mode" in Settings which will allow non english characters to be used from a non en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
109+
93110
### Lossless mode
94111

95112
This container is capable of delivering a true lossless image at a high framerate to your web browser by changing the Stream Quality preset to "Lossless", more information [here](https://www.kasmweb.com/docs/latest/how_to/lossless.html#technical-background). In order to use this mode from a non localhost endpoint the HTTPS port on 3001 needs to be used. If using a reverse proxy to port 3000 specific headers will need to be set as outlined [here](https://github.com/linuxserver/docker-baseimage-kasmvnc#lossless).
@@ -311,4 +328,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
311328

312329
## Versions
313330

331+
* **10.02.24:** - Rebase to Alpine 3.19, update Readme with new env vars, and ingest proper PWA icon.
314332
* **07.12.23:** - Initial Release.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ repo_vars:
1616
- DEV_DOCKERHUB_IMAGE = 'lsiodev/krita'
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/krita'
1818
- DIST_IMAGE = 'alpine'
19-
- DIST_TAG = '3.18'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.18/community/'
19+
- DIST_TAG = '3.19'
20+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/community/'
2121
- DIST_REPO_PACKAGES = 'krita'
2222
- MULTIARCH = 'true'
2323
- CI = 'true'

readme-vars.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ app_setup_block: |
5858
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
5959
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
6060
| 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` |
61+
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
62+
| NO_DECOR | If set the application will run without window borders for use as a PWA. |
63+
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
6164
6265
#### Optional run configurations
6366
@@ -67,10 +70,25 @@ app_setup_block: |
6770
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. |
6871
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated appplications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
6972
73+
### Language Support - Internationalization
74+
75+
The environment variable `LC_ALL` can be used to start this image in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
76+
77+
To install cjk fonts on startup as an example pass the environment variables:
78+
79+
```
80+
-e DOCKER_MODS=linuxserver/mods:universal-package-install
81+
-e INSTALL_PACKAGES=font-noto-cjk
82+
-e LC_ALL=zh_CN.UTF-8
83+
```
84+
85+
The web interface has the option for "IME Input Mode" in Settings which will allow non english characters to be used from a non en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
86+
7087
### Lossless mode
7188
7289
This container is capable of delivering a true lossless image at a high framerate to your web browser by changing the Stream Quality preset to "Lossless", more information [here](https://www.kasmweb.com/docs/latest/how_to/lossless.html#technical-background). In order to use this mode from a non localhost endpoint the HTTPS port on 3001 needs to be used. If using a reverse proxy to port 3000 specific headers will need to be set as outlined [here](https://github.com/linuxserver/docker-baseimage-kasmvnc#lossless).
7390
7491
# changelog
7592
changelogs:
93+
- { date: "10.02.24:", desc: "Rebase to Alpine 3.19, update Readme with new env vars, and ingest proper PWA icon." }
7694
- { date: "07.12.23:", desc: "Initial Release." }

0 commit comments

Comments
 (0)