Skip to content

base

circle_libreoffice_base.svg

inherite from

abcdesktopio/oc.template.alpine.libreoffice

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

libreoffice-gnome

Arguments

"--base"

Displayname

Base

Path

/usr/lib/libreoffice/program/soffice

uniquerunkey

"libreoffice"

Mimetype

application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base;

File extensions

"odb"

Legacy file extensions

"odb"

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

libreoffice.libreoffice-base

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

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "development",
    "apkpackage": "libreoffice-gnome",
    "icon": "circle_libreoffice_base.svg",
    "keyword": "libreoffice,office",
    "launch": "libreoffice.libreoffice-base",
    "name": "base",
    "displayname": "Base",
    "args": "--base",
    "uniquerunkey": "libreoffice",
    "path": "/usr/lib/libreoffice/program/soffice",
    "template": "abcdesktopio/oc.template.alpine.libreoffice",
    "mimetype": "application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base;",
    "fileextensions": "odb",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "legacyfileextensions": "odb",
    "desktopfile": "/usr/share/applications/libreoffice-base.desktop",
    "usedefaultapplication": true,
    "abcdesktop_release": 3
}

Install the builded image

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

ABCHOST=localhost
curl --output base.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/base.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @base.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.libreoffice:$TAG
USER root
RUN apk add --no-cache --update libreoffice-gnome
LABEL oc.icon="circle_libreoffice_base.svg"
LABEL oc.icondata="PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiA8ZGVmcz4KICA8bGluZWFyR3JhZGllbnQgaWQ9ImIiIHgxPSIzOTkuNTciIHgyPSIzOTkuNTciIHkxPSI1NDUuOCIgeTI9IjUxNy44IiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDIuMTQyOSwwLDAsMi4xNDI5LC04MjYuMzYsLTExMDcuNSkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgPHN0b3Agc3RvcC1jb2xvcj0iIzM4ODllOSIgb2Zmc2V0PSIwIi8+CiAgIDxzdG9wIHN0b3AtY29sb3I9IiM1ZWE1ZmIiIG9mZnNldD0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPGZpbHRlciBpZD0iYyIgeD0iLS4wMzYiIHk9Ii0uMDM2IiB3aWR0aD0iMS4wNzIiIGhlaWdodD0iMS4wNzIiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuNDE5OTk4NzQiLz4KICA8L2ZpbHRlcj4KICA8bGluZWFyR3JhZGllbnQgaWQ9ImciIHgxPSIzMi4wMiIgeDI9IjMyLj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c.launch="libreoffice.libreoffice-base"
LABEL oc.template="abcdesktopio/oc.template.alpine.libreoffice"
ENV ARGS="--base"
LABEL oc.name="base"
LABEL oc.displayname="Base"
LABEL oc.path="/usr/lib/libreoffice/program/soffice"
LABEL oc.type=app
LABEL oc.uniquerunkey="libreoffice"
LABEL oc.mimetype="application/vnd.oasis.opendocument.database;application/vnd.sun.xml.base;"
LABEL oc.fileextensions="odb"
LABEL oc.legacyfileextensions="odb"
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 "base"
ENV APPBIN "/usr/lib/libreoffice/program/soffice"
LABEL oc.args="--base"
ENV APP "/usr/lib/libreoffice/program/soffice"
LABEL oc.usedefaultapplication=true
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 base

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

build the Dockerfile to create a container image

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

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