calculator
inherite from
abcdesktopio/oc.template.alpine
Distribution
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
gnome-calculator
Path
/usr/bin/gnome-calculator
ACL
{
"permit": [
"all"
]
}
WM_CLASS
gnome-calculator.gnome-calculator
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.Calculator.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 calculator.d.3.0.json
{
"acl": {
"permit": [
"all"
]
},
"cat": "utilities,office",
"apkpackage": "gnome-calculator",
"icon": "gnome_calculator.svg",
"keyword": "calculator",
"launch": "gnome-calculator.gnome-calculator",
"name": "calculator",
"rules": {
"homedir": {
"default": true
}
},
"path": "/usr/bin/gnome-calculator",
"template": "abcdesktopio/oc.template.alpine",
"desktopfile": "/usr/share/applications/org.gnome.Calculator.desktop"
}
Install the builded image
Replace the ABCHOST var set to localhost by default to your own server ip address
ABCHOST=localhost
curl --output calculator.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/calculator.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @calculator.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 gnome-calculator
LABEL oc.icon="gnome_calculator.svg"
LABEL oc.icondata="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0i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IDxwYXRoIGQ9Im0gODcgODYgYyAzLjg2NzE4OCAwIDcgMy4xMzI4MTIgNyA3IHYgNCBjIDAgMy44NjcxODggLTMuMTMyODEyIDcgLTcgNyBzIC03IC0zLjEzMjgxMiAtNyAtNyB2IC00IGMgMCAtMy44NjcxODggMy4xMzI4MTIgLTcgNyAtNyB6IG0gMCAwIiBmaWxsPSIjYzY0NjAwIi8+CiAgICA8cGF0aCBkPSJtIDg3IDY2IGMgMy44NjcxODggMCA3IDMuMTMyODEyIDcgNyB2IDIyIGMgMCAzLjg2NzE4OCAtMy4xMzI4MTIgNyAtNyA3IHMgLTcgLTMuMTMyODEyIC03IC03IHYgLTIyIGMgMCAtMy44NjcxODggMy4xMzI4MTIgLTcgNyAtNyB6IG0gMCAwIiBmaWxsPSIjZmY3ODAwIi8+Cjwvc3ZnPgo="
LABEL oc.keyword="calculator,calculator"
LABEL oc.cat="utilities,office"
LABEL oc.desktopfile="org.gnome.Calculator.desktop"
LABEL oc.launch="gnome-calculator.gnome-calculator"
LABEL oc.template="abcdesktopio/oc.template.alpine"
LABEL oc.name="calculator"
LABEL oc.displayname="calculator"
LABEL oc.path="/usr/bin/gnome-calculator"
LABEL oc.type=app
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 "calculator"
ENV APPBIN "/usr/bin/gnome-calculator"
ENV APP "/usr/bin/gnome-calculator"
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 calculator
wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/calculator.d
build the Dockerfile
to create a container image
docker build --build-arg TAG=3.0 -f calculator.d -t calculator .
Install the new image
If you are using
containerd
as container runtime, use the ctr command lineIf 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 calculator > calculator.json
docker image save calculator -o calculator.tar
ctr -n k8s.io images import calculator.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @calculator.json