Skip to content

sublime-Text

circle_sublime-text.svg

inherite from

abcdesktopio/oc.template.ubuntu.gtk

Distribution

ubuntu 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

sublime-text

Path

/opt/sublime_text/sublime_text

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

sublime_text.Sublime_text

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/sublime_text.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 curl -Ls https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -a
RUN echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list
RUN apt-get update && apt-get install --yes libgl1 && apt-get clean

JSON dump

json source file sublime-text.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "development",
    "preruncommands": [
        "RUN curl -Ls https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -a",
        "RUN echo \"deb https://download.sublimetext.com/ apt/stable/\" | tee /etc/apt/sources.list.d/sublime-text.list",
        "RUN apt-get update && apt-get install --yes libgl1 && apt-get clean"
    ],
    "debpackage": "sublime-text",
    "installrecommends": true,
    "icon": "circle_sublime-text.svg",
    "keyword": "ide,code,sublime-text",
    "launch": "sublime_text.Sublime_text",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "name": "sublime-Text",
    "path": "/opt/sublime_text/sublime_text",
    "template": "abcdesktopio/oc.template.ubuntu.gtk",
    "desktopfile": "/usr/share/applications/sublime_text.desktop"
}

Install the builded image

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

ABCHOST=localhost
curl --output sublime-text.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/sublime-text.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @sublime-text.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 curl -Ls https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add -a
RUN echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list
RUN apt-get update && apt-get install --yes libgl1 && apt-get clean
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y sublime-text && apt-get clean
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
LABEL oc.icon="circle_sublime-text.svg"
LABEL oc.icondata="PHN2ZyBpZD0iU3VibGltZS1UZXh0IiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMjQgMTAyNCIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVNwZWVkIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA2NCA2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiA8ZGVmcz4KICA8bGluZWFyR3JhZGllbnQgaWQ9InN1YmxpbWUtaWNvbi1iIiB4MT0iMTkzLj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zkxMSA5LjM5NCA5LjgwMzkgNy42ODdsMzcxLjYzLTExNy44OGM1LjQwMTktMS43MTc5IDkuODAzOS03Ljk0NzkgOS44MDM5LTEzLjg5NXoiIGZpbGw9IiNmZjk4MDAiLz4KICA8L2c+CiA8L2c+Cjwvc3ZnPgo="
LABEL oc.keyword="sublime-text,ide,code,sublime-text"
LABEL oc.cat="development"
LABEL oc.desktopfile="sublime_text.desktop"
LABEL oc.launch="sublime_text.Sublime_text"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.gtk"
LABEL oc.name="sublime-Text"
LABEL oc.displayname="sublime-Text"
LABEL oc.path="/opt/sublime_text/sublime_text"
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 "sublime-Text"
ENV APPBIN "/opt/sublime_text/sublime_text"
ENV APP "/opt/sublime_text/sublime_text"
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 sublime-Text

wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/sublime-Text.d

build the Dockerfile to create a container image

docker build --build-arg TAG=3.0 -f sublime-Text.d -t sublime-Text .

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