Skip to content

beekeeperstudio

beekeeper-studio.svg

inherite from

abcdesktopio/oc.template.ubuntu.gtk

Arguments

"--no-sandbox"

Displayname

Beekeeper-studio

Path

/opt/Beekeeper-Studio/beekeeper-studio

File extensions

"sql"

Legacy file extensions

"sql"

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

beekeeper-studio.beekeeper-studio

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/beekeeper-studio.desktop

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

PRE run command

PRE run command are run before the package install command

RUN apt-get update && apt-get install  --no-install-recommends --yes libxss1 libasound2 libx11-xcb1 libxcb-dri3-0 libdrm2  libdrm-common libgbm1 && apt-get clean
RUN curl -Ls https://deb.beekeeperstudio.io/beekeeper.key | apt-key add -
RUN echo "deb https://deb.beekeeperstudio.io stable main" | tee /etc/apt/sources.list.d/beekeeper-studio-app.list
RUN apt-get update && apt-get install  --no-install-recommends --yes beekeeper-studio libxshmfence1 && apt-get clean
RUN mv "/opt/Beekeeper Studio/" /opt/Beekeeper-Studio
ENV ELECTRON_ENABLE_LOGGING=true
ENV QT_X11_NO_MITSHM=1

JSON dump

json source file beekeeperstudio.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "office",
    "preruncommands": [
        "RUN apt-get update && apt-get install  --no-install-recommends --yes libxss1 libasound2 libx11-xcb1 libxcb-dri3-0 libdrm2  libdrm-common libgbm1 && apt-get clean",
        "RUN curl -Ls https://deb.beekeeperstudio.io/beekeeper.key | apt-key add -",
        "RUN echo \"deb https://deb.beekeeperstudio.io stable main\" | tee /etc/apt/sources.list.d/beekeeper-studio-app.list",
        "RUN apt-get update && apt-get install  --no-install-recommends --yes beekeeper-studio libxshmfence1 && apt-get clean",
        "RUN mv \"/opt/Beekeeper Studio/\" /opt/Beekeeper-Studio",
        "ENV ELECTRON_ENABLE_LOGGING=true",
        "ENV QT_X11_NO_MITSHM=1"
    ],
    "debpackage": "",
    "icon": "beekeeper-studio.svg",
    "keyword": "database,sql,mysql,postgres,sqllite,db,sqlserver,query,editor",
    "launch": "beekeeper-studio.beekeeper-studio",
    "name": "beekeeperstudio",
    "displayname": "Beekeeper-studio",
    "installrecommends": false,
    "forceconfold": true,
    "host_config": {
        "shm_size": "2G",
        "ipc_mode": "shareable"
    },
    "args": "--no-sandbox",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "path": "/opt/Beekeeper-Studio/beekeeper-studio",
    "template": "abcdesktopio/oc.template.ubuntu.gtk",
    "legacyfileextensions": "sql",
    "fileextensions": "sql",
    "desktopfile": "/usr/share/applications/beekeeper-studio.desktop",
    "usedefaultapplication": false
}

Install the builded image

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

ABCHOST=localhost
curl --output beekeeperstudio.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/beekeeperstudio.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @beekeeperstudio.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:$TAG
USER root
RUN apt-get update && apt-get install  --no-install-recommends --yes libxss1 libasound2 libx11-xcb1 libxcb-dri3-0 libdrm2  libdrm-common libgbm1 && apt-get clean
RUN curl -Ls https://deb.beekeeperstudio.io/beekeeper.key | apt-key add -
RUN echo "deb https://deb.beekeeperstudio.io stable main" | tee /etc/apt/sources.list.d/beekeeper-studio-app.list
RUN apt-get update && apt-get install  --no-install-recommends --yes beekeeper-studio libxshmfence1 && apt-get clean
RUN mv "/opt/Beekeeper Studio/" /opt/Beekeeper-Studio
ENV ELECT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44di03LjJWNjZWNDcuNVYxNi44TDExLjQsMjguMkM0LjMsMzIuMywwLDM5LjgsMCw0OHY1MC4zCgkJCWMwLDguMSw0LjMsMTUuNywxMS40LDE5LjhMNTUsMTQzLjJjNy4xLDQuMSwxNS44LDQuMSwyMi44LDBsNDMuNi0yNS4xYzcuMS00LjEsMTEuNC0xMS42LDExLjQtMTkuOFY0OAoJCQlDMTMyLjcsMzkuOCwxMjguMywzMi4zLDEyMS4zLDI4LjJ6IE01Mi4zLDU1LjJjLTEuMywxLTIuNCwyLjEtMy40LDMuM3YtMTZsMy40LTJWNTUuMnogTTYxLDUxYy0xLjIsMC4zLTIuMywwLjYtMy40LDEuMVYzNy43CgkJCWMxLjEtMC41LDIuMy0wLjgsMy40LTEuMVY1MXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K"
LABEL oc.keyword="beekeeperstudio,database,sql,mysql,postgres,sqllite,db,sqlserver,query,editor"
LABEL oc.cat="office"
LABEL oc.desktopfile="beekeeper-studio.desktop"
LABEL oc.launch="beekeeper-studio.beekeeper-studio"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.gtk"
ENV ARGS="--no-sandbox"
LABEL oc.name="beekeeperstudio"
LABEL oc.displayname="Beekeeper-studio"
LABEL oc.path="/opt/Beekeeper-Studio/beekeeper-studio"
LABEL oc.type=app
LABEL oc.fileextensions="sql"
LABEL oc.legacyfileextensions="sql"
LABEL oc.rules="{\"homedir\":{\"default\":true}}"
LABEL oc.acl="{\"permit\":[\"all\"]}"
LABEL oc.host_config="{\"shm_size\":\"2G\",\"ipc_mode\":\"shareable\"}"
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 "beekeeperstudio"
ENV APPBIN "/opt/Beekeeper-Studio/beekeeper-studio"
LABEL oc.args="--no-sandbox"
ENV APP "/opt/Beekeeper-Studio/beekeeper-studio"
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 beekeeperstudio

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

build the Dockerfile to create a container image

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

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