Skip to content

Dia

circle_dia.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

dia dia-lang

Path

/usr/bin/dia

Mimetype

application/x-dia-diagram;

File extensions

"dia"

Legacy file extensions

"dia"

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

dia-gnome.Dia-gnome

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/dia.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 dia.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "graphics",
    "apkpackage": "dia dia-lang",
    "installrecommends": true,
    "icon": "circle_dia.svg",
    "launch": "dia-gnome.Dia-gnome",
    "name": "Dia",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "path": "/usr/bin/dia",
    "template": "abcdesktopio/oc.template.alpine",
    "mimetype": "application/x-dia-diagram;",
    "fileextensions": "dia",
    "legacyfileextensions": "dia",
    "desktopfile": "/usr/share/applications/dia.desktop"
}

Install the builded image

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

ABCHOST=localhost
curl --output dia.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/dia.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @dia.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
US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MDQzdjEuMzA0M2gtMi42MDg3djMuOTEzaDIuNjA4N3YxOC4yNjFoLTIuNjA4N3YzLjkxM2gyLjYwODd2MS4xNDM5aC0xLjMwNDNsMi42MDg3IDQuMDczNSAyLjYwODctNC4wNzM1aC0xLjMwNDN2LTEuMTQzOWgxMS43MzljNy4yMjYxIDAgMTMuMDQzLTUuODE3NCAxMy4wNDMtMTMuMDQzcy01LjgxNzQtMTMuMDQzLTEzLjA0My0xMy4wNDNoLTExLjczOXYtMS4zMDQzaDEuMzA0M3YtMy45MTN6bTMuOTEzIDkuMTMwNGgxMS43MzljNS4wNTgzIDAgOS4xMzA0IDQuMDcyMiA5LjEzMDQgOS4xMzA0cy00LjA3MjIgOS4xMzA0LTkuMTMwNCA5LjEzMDRoLTExLjczOXoiIGZpbGw9IiNmOWY5ZjkiLz4KPC9zdmc+Cg=="
LABEL oc.keyword="dia"
LABEL oc.cat="graphics"
LABEL oc.desktopfile="dia.desktop"
LABEL oc.launch="dia-gnome.Dia-gnome"
LABEL oc.template="abcdesktopio/oc.template.alpine"
LABEL oc.name="Dia"
LABEL oc.displayname="Dia"
LABEL oc.path="/usr/bin/dia"
LABEL oc.type=app
LABEL oc.mimetype="application/x-dia-diagram;"
LABEL oc.fileextensions="dia"
LABEL oc.legacyfileextensions="dia"
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 "Dia"
ENV APPBIN "/usr/bin/dia"
ENV APP "/usr/bin/dia"
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 Dia

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

build the Dockerfile to create a container image

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

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 Dia > Dia.json
docker image save Dia -o Dia.tar
ctr -n k8s.io images import Dia.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @Dia.json