Skip to content

boxes

org.gnome.Boxes.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

gnome-boxes sudo

Displayname

Gnome-boxes

Path

/usr/bin/gnome-boxes

Mimetype

application-x-cd-image;

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

gnome-boxes.Gnome-boxes

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.Boxes.desktop

A .desktop file is a simple text file that holds information about a program. It is usually placed in “/usr/share/applications/”.

POST run command

POST run command are run after the package install comman

RUN echo "ALL ALL=(ALL:ALL) ALL">/etc/sudoers.d/all

JSON dump

json source file boxes.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "development",
    "icon": "org.gnome.Boxes.svg",
    "apkpackage": "gnome-boxes sudo",
    "keyword": "boxes,vm",
    "launch": "gnome-boxes.Gnome-boxes",
    "name": "boxes",
    "displayname": "Gnome-boxes",
    "path": "/usr/bin/gnome-boxes",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "template": "abcdesktopio/oc.template.alpine",
    "desktopfile": "/usr/share/applications/org.gnome.Boxes.desktop",
    "mimetype": "application-x-cd-image;",
    "postruncommands": [
        "RUN echo \"ALL ALL=(ALL:ALL) ALL\">/etc/sudoers.d/all"
    ],
    "securitycontext": {
        "allowPrivilegeEscalation": true,
        "capabilities": {
            "add": [
                "NET_ADMIN",
                "CAP_SYS_ADMIN"
            ]
        }
    }
}

Install the builded image

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

ABCHOST=localhost
curl --output boxes.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/boxes.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @boxes.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-boxes sudo
LABEL oc.icon="org.gnome.Boxes.svg"
LABEL oc.icondata="PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgdmVyc2lvbj0iMS4wIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIvPjxzdG9wIG9mZnNldD0iLjQiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmNmY1ZjQiLz48L2xpbmVhckdyYWRpZW50PjxyYWRpYWxHcmFkaWVudCB4bGluazpocmVmPSIjYSIgaWQ9ImkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDQgMCAwIDQgLTQ5Mi43OTkgLTY0MS45NTIpIiBjeD0iMTM0LjIiIGN5PSIyMjIuOTg4IiBmeD0iMTM0LjIiIGZ5PSIyMjIuOTg4IiByPSIyIi8+PHJhZGlhbEdyYWRpZW50IHhsaW5rOmhyZWY9IiNhIiBpZD0iaCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoNCAwIDAgNCAtNDkyLjc5OSA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SIjZDVkM2NmIi8+PGNpcmNsZSByPSI4IiBjeT0iMjU0IiBjeD0iNDQiIHN0eWxlPSJtYXJrZXI6bm9uZSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBmaWxsPSJ1cmwoI2kpIi8+PC9nPjwvc3ZnPg=="
LABEL oc.keyword="boxes,boxes,vm"
LABEL oc.cat="development"
LABEL oc.desktopfile="org.gnome.Boxes.desktop"
LABEL oc.launch="gnome-boxes.Gnome-boxes"
LABEL oc.template="abcdesktopio/oc.template.alpine"
LABEL oc.name="boxes"
LABEL oc.displayname="Gnome-boxes"
LABEL oc.path="/usr/bin/gnome-boxes"
LABEL oc.type=app
LABEL oc.mimetype="application-x-cd-image;"
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 "boxes"
ENV APPBIN "/usr/bin/gnome-boxes"
ENV APP "/usr/bin/gnome-boxes"
LABEL oc.securitycontext={"allowPrivilegeEscalation":true,"capabilities":{"add":["NET_ADMIN","CAP_SYS_ADMIN"]}}
RUN echo "ALL ALL=(ALL:ALL) ALL">/etc/sudoers.d/all
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 boxes

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

build the Dockerfile to create a container image

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

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