weather
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-weather
Path
/usr/bin/gnome-weather
ACL
{
"permit": [
"all"
]
}
WM_CLASS
org.gnome.Weather.org.gnome.Weather
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.Weather.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 weather.d.3.0.json
{
"acl": {
"permit": [
"all"
]
},
"cat": "office",
"apkpackage": "gnome-weather",
"icon": "org.gnome.Weather.svg",
"keyword": "weather",
"launch": "org.gnome.Weather.org.gnome.Weather",
"name": "weather",
"rules": {
"homedir": {
"default": true
}
},
"path": "/usr/bin/gnome-weather",
"args": "",
"template": "abcdesktopio/oc.template.alpine",
"desktopfile": "/usr/share/applications/org.gnome.Weather.desktop"
}
Install the builded image
Replace the ABCHOST var set to localhost by default to your own server ip address
ABCHOST=localhost
curl --output weather.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/weather.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @weather.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-weather
LABEL oc.icon="org.gnome.Weather.svg"
LABEL oc.icondata="PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIH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gMCAwIDIxLjk4NiA0N2gyMS42NDJhOS4wMTggOS4wMTggMCAwIDAgOS4wMTgtOS4wMTggOS4wMTggOS4wMTggMCAwIDAtOS4wMTgtOS4wMTggOS4wMTggOS4wMTggMCAwIDAtLjg1Ny4wNDkgMTEuMTQ1IDExLjE0NSAwIDAgMC0xMC4yOTQtNi44OTd6IiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuODUiIHN0eWxlPSJwYWludC1vcmRlcjpub3JtYWwiLz48L3N2Zz4="
LABEL oc.keyword="weather,weather"
LABEL oc.cat="office"
LABEL oc.desktopfile="org.gnome.Weather.desktop"
LABEL oc.launch="org.gnome.Weather.org.gnome.Weather"
LABEL oc.template="abcdesktopio/oc.template.alpine"
LABEL oc.name="weather"
LABEL oc.displayname="weather"
LABEL oc.path="/usr/bin/gnome-weather"
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 "weather"
ENV APPBIN "/usr/bin/gnome-weather"
ENV APP "/usr/bin/gnome-weather"
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 weather
wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/weather.d
build the Dockerfile
to create a container image
docker build --build-arg TAG=3.0 -f weather.d -t weather .
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 weather > weather.json
docker image save weather -o weather.tar
ctr -n k8s.io images import weather.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @weather.json