Golly
inherite from
abcdesktopio/oc.template.ubuntu.gtk.language-pack-all
Distribution
ubuntu
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Ubuntu packages
golly
Path
/usr/games/golly
ACL
{
"permit": [
"all"
]
}
WM_CLASS
golly.Golly
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
JSON dump
json source file golly.d.3.0.json
{
"acl": {
"permit": [
"all"
]
},
"cat": "education",
"debpackage": "golly",
"icon": "golly.svg",
"keyword": "golly",
"launch": "golly.Golly",
"name": "Golly",
"path": "/usr/games/golly",
"rules": {
"homedir": {
"default": true
}
},
"template": "abcdesktopio/oc.template.ubuntu.gtk.language-pack-all"
}
Install the builded image
Replace the ABCHOST var set to localhost by default to your own server ip address
ABCHOST=localhost
curl --output golly.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/golly.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @golly.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.ubuntu.gtk.language-pack-all:$TAG
USER root
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends golly && apt-get clean
RUN echo 'debconf debconf/frontend select Nonin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nPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg=="
LABEL oc.keyword="golly,golly"
LABEL oc.cat="education"
LABEL oc.launch="golly.Golly"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.gtk.language-pack-all"
LABEL oc.name="Golly"
LABEL oc.displayname="Golly"
LABEL oc.path="/usr/games/golly"
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 "Golly"
ENV APPBIN "/usr/games/golly"
ENV APP "/usr/games/golly"
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 Golly
wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/Golly.d
build the Dockerfile
to create a container image
docker build --build-arg TAG=3.0 -f Golly.d -t Golly .
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 Golly > Golly.json
docker image save Golly -o Golly.tar
ctr -n k8s.io images import Golly.tar
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @Golly.json