Skip to content

chess

circle_chess.svg

inherite from

abcdesktopio/oc.template.alpine

Distribution

alpine alpine

NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.1
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Alpine packages

gnuchess gnome-chess

Path

/usr/bin/gnome-chess

Mimetype

application/x-chess-pgn

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

gnome-chess.gnome-chess

The WM_CLASS property (of type STRING without control characters) contains two consecutive null-terminated strings. These specify the Instance and Class names to be used by both the client and the window manager for looking up resources for the application or as identifying information. to get the WM_CLASS property of an application, use the command line wmctrl -lx

Desktopfile

/usr/share/applications/org.gnome.Chess.desktop

A .desktop file is a simple text file that holds information about a program. It is usually placed in “/usr/share/applications/”.

JSON dump

json source file chess.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "games",
    "apkpackage": "gnuchess gnome-chess",
    "icon": "circle_chess.svg",
    "keyword": "chess gnuchess",
    "launch": "gnome-chess.gnome-chess",
    "name": "chess",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "path": "/usr/bin/gnome-chess",
    "args": "",
    "template": "abcdesktopio/oc.template.alpine",
    "mimetype": "application/x-chess-pgn",
    "desktopfile": "/usr/share/applications/org.gnome.Chess.desktop"
}

Install the builded image

Replace the ABCHOST var set to localhost by default to your own server ip address

ABCHOST=localhost
curl --output chess.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/chess.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @chess.d.3.0.json

Generated DockerFile source code

# Dynamic DockerFile application file for abcdesktopio generated by abcdesktopio/oc.apps/make.js
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
ARG TAG=dev
FROM abcdesktopio/oc.template.alpine:$TAG
USER root
RUN apk add --no-cache --update gnu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LjMzMzNoLTIuMzMzM3YyLjMzMzNoLTIuMzMzM3YtMi4zMzM0aC0yLjMzMzN2Mi4zMzMzaC0yLjMzMzN2LTIuMzMzMyIgZmlsbD0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjE2NjciLz4KPC9zdmc+Cg=="
LABEL oc.keyword="chess,chess gnuchess"
LABEL oc.cat="games"
LABEL oc.desktopfile="org.gnome.Chess.desktop"
LABEL oc.launch="gnome-chess.gnome-chess"
LABEL oc.template="abcdesktopio/oc.template.alpine"
LABEL oc.name="chess"
LABEL oc.displayname="chess"
LABEL oc.path="/usr/bin/gnome-chess"
LABEL oc.type=app
LABEL oc.mimetype="application/x-chess-pgn"
LABEL oc.rules="{\"homedir\":{\"default\":true}}"
LABEL oc.acl="{\"permit\":[\"all\"]}"
RUN for d in /usr/share/icons /usr/share/pixmaps ; do echo "testing link in $d"; if [ -d $d ] && [ -x /composer/safelinks.sh ] ; then echo "fixing link in $d"; cd $d ; /composer/safelinks.sh ; fi; done
ENV APPNAME "chess"
ENV APPBIN "/usr/bin/gnome-chess"
ENV APP "/usr/bin/gnome-chess"
USER root
RUN mkdir -p /var/secrets/abcdesktop/localaccount
RUN for f in passwd shadow group gshadow ; do if [ -f /etc/$f ] ; then  cp /etc/$f /var/secrets/abcdesktop/localaccount; rm -f /etc/$f; ln -s /var/secrets/abcdesktop/localaccount/$f /etc/$f; fi; done
USER balloon
CMD [ "/composer/appli-docker-entrypoint.sh" ]

Rebuild the image manually

Download the Dockerfile manually

Dockerfile for application chess

wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/chess.d

build the Dockerfile to create a container image

docker build --build-arg TAG=3.0 -f chess.d -t chess .

Install the new image

If you are using containerd as container runtime, use the ctr command line

If you are not running this bash command on your abcdesktop node Replace the ABCHOST variable set to localhost by default to your own server ip address

ABCHOST=localhost
docker inspect chess > chess.json
docker image save chess -o chess.tar
ctr -n k8s.io images import chess.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @chess.json