Skip to content

cloudFoundry

pivotalio-icon.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

cf8-cli

Arguments

"--disable-factory --class pivotalio.cf"

Displayname

Cloud Foundry cli

Path

/usr/bin/gnome-terminal

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

gnome-terminal-server.pivotalio.cf

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

PRE run command

PRE run command are run before the package install command

RUN curl https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list

JSON dump

json source file cloudfoundry.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "development",
    "preruncommands": [
        "RUN curl https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -",
        "RUN echo \"deb https://packages.cloudfoundry.org/debian stable main\" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list"
    ],
    "debpackage": "cf8-cli",
    "icon": "pivotalio-icon.svg",
    "keyword": "cf,pivotal.io,cloud,foundry,cloud foundry",
    "launch": "gnome-terminal-server.pivotalio.cf",
    "name": "cloudFoundry",
    "path": "/usr/bin/gnome-terminal",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "template": "abcdesktopio/oc.template.ubuntu.gtk",
    "displayname": "Cloud Foundry cli",
    "args": "--disable-factory --class pivotalio.cf",
    "quick": true
}

Install the builded image

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

ABCHOST=localhost
curl --output cloudfoundry.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/cloudfoundry.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @cloudfoundry.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 https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y  --no-install-recommends cf8-cli && apt-get clean
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
LABEL oc.icon="pivotalio-icon.svg"
LABEL oc.icondata="PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCI+PHBhdGggZD0iTTI3LjY2IDBIMTAuNXY2NGgxMC42NjdWOS42Mmg1LjQzOGMxLjM2IDAgMi4zIDAgMy40NS4yMSA4Ljc4NC4yMSAxMy4wNzIgMi44MjQgMTMuMDcyIDkuODN2LjgzN2MwIDYuNDg0LTMuNDUgMTAuNjY3LTEyLjg2MyAxMC42NjctLjk0IDAtMi4zLS4yMS0yLjMtLjIxdjguNzg0aDIuM0M0My44NyAzOS43NCA1My41IDM0LjMgNTMuNSAyMC4zOTJ2LS44MzdDNTMuNSA1LjEyNCA0Mi44MjQgMCAyNy42NiAweiIgZmlsbD0iIzAwN2Q2OCIvPjwvc3ZnPg=="
LABEL oc.keyword="cloudfoundry,cf,pivotal.io,cloud,foundry,cloud foundry"
LABEL oc.cat="development"
LABEL oc.launch="gnome-terminal-server.pivotalio.cf"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.gtk"
ENV ARGS="--disable-factory --class pivotalio.cf"
LABEL oc.name="cloudFoundry"
LABEL oc.displayname="Cloud Foundry cli"
LABEL oc.path="/usr/bin/gnome-terminal"
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 "cloudFoundry"
ENV APPBIN "/usr/bin/gnome-terminal"
LABEL oc.args="--disable-factory --class pivotalio.cf"
ENV APP "/usr/bin/gnome-terminal"
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 cloudFoundry

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

build the Dockerfile to create a container image

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

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