Skip to content

apachedirectorystudio

account.svg

inherite from

abcdesktopio/oc.template.ubuntu.22.04

Distribution

ubuntu ubuntu

PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=jammy

Ubuntu packages

openjdk-11-jre libswt-gtk-4-jni libswt-webkit-gtk-4-jni libswt-cairo-gtk-4-jni libswt-gtk-4-java

Arguments

"-configuration .eclipse/1988419495_linux_gtk_x86_64"

Displayname

Apache Directory Studio

Path

/usr/local/ApacheDirectoryStudio/ApacheDirectoryStudio

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

Apache Directory Studio.Apache Directory 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

PRE run command

PRE run command are run before the package install command

RUN curl -sL --output /tmp/ApacheDirectoryStudio.tar.gz https://dlcdn.apache.org/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz && cd /usr/local && tar -xvf /tmp/ApacheDirectoryStudio.tar.gz && rm -rf /tmp/ApacheDirectoryStudio.tar.gz
RUN mkdir /.ApacheDirectoryStudio && chmod 777 /.ApacheDirectoryStudio
COPY composer/init.d/init.ApacheDirectoryStudio /composer/init.d/

JSON dump

json source file apachedirectorystudio.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "cat": "development",
    "preruncommands": [
        "RUN curl -sL --output /tmp/ApacheDirectoryStudio.tar.gz https://dlcdn.apache.org/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz && cd /usr/local && tar -xvf /tmp/ApacheDirectoryStudio.tar.gz && rm -rf /tmp/ApacheDirectoryStudio.tar.gz",
        "RUN mkdir /.ApacheDirectoryStudio && chmod 777 /.ApacheDirectoryStudio",
        "COPY composer/init.d/init.ApacheDirectoryStudio /composer/init.d/"
    ],
    "debpackage": "openjdk-11-jre libswt-gtk-4-jni libswt-webkit-gtk-4-jni libswt-cairo-gtk-4-jni libswt-gtk-4-java",
    "icon": "account.svg",
    "args": "-configuration .eclipse/1988419495_linux_gtk_x86_64",
    "installrecommends": true,
    "keyword": "ldap",
    "launch": "Apache Directory Studio.Apache Directory Studio",
    "name": "apachedirectorystudio",
    "displayname": "Apache Directory Studio",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "path": "/usr/local/ApacheDirectoryStudio/ApacheDirectoryStudio",
    "template": "abcdesktopio/oc.template.ubuntu.22.04"
}

Install the builded image

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

ABCHOST=localhost
curl --output apachedirectorystudio.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/apachedirectorystudio.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @apachedirectorystudio.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.22.04:$TAG
USER root
RUN curl -sL --output /tmp/ApacheDirectoryStudio.tar.gz https://dlcdn.apache.org/directory/studio/2.0.0.v20210717-M17/ApacheDirectoryStudio-2.0.0.v20210717-M17-linux.gtk.x86_64.tar.gz && cd /usr/local && tar -xvf /tmp/ApacheDirectoryStudio.tar.gz && rm -rf /tmp/ApacheDirectoryStudio.tar.gz
RUN mkdir /.ApacheDirectoryStudio && chmod 777 /.ApacheDirectoryStudio
COPY composer/init.d/init.ApacheDirectoryStudio /composer/init.d/
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y openjdk-11-jre libswt-gtk-4-jni libswt-webkit-gtk-4-jni libswt-cairo-gtk-4-jni libswt-gtk-4-java && apt-get clean
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
LABEL oc.icon="account.svg"
LABEL oc.icondata="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9Ii00NjIgNDYzIDM1IDM1IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IC00NjIgNDYzIDM1IDM1OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDojMDA3OEQ2O30NCjwvc3R5bGU+DQo8dGl0bGU+XzwvdGl0bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNLTQ0MS4yLDQ4NGMwLjksMC4zLDEuOCwwLjgsMi42LDEuNGMwLjgsMC42LDEuNCwxLjMsMiwyLjFjMC41LDAuOCwxLDEuNywxLjMsMi42YzAuMywxLDAuNCwxLjksMC40LDIuOWgtMS4zDQoJYzAtMS4xLTAuMi0yLjItMC42LTMuMmMtMC44LTItMi40LTMuNS00LjM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SJNLTQ0NC41LDQ5N2MtOS4xLDAtMTYuNS03LjQtMTYuNi0xNi41YzAtOS4xLDcuNC0xNi41LDE2LjUtMTYuNmM5LjEsMCwxNi41LDcuNCwxNi42LDE2LjUNCglDLTQyOCw0ODkuNi00MzUuNCw0OTctNDQ0LjUsNDk3eiBNLTQ0NC41LDQ2NS44Yy04LjEsMC0xNC43LDYuNi0xNC43LDE0LjdzNi42LDE0LjcsMTQuNywxNC43czE0LjctNi42LDE0LjctMTQuN2MwLDAsMCwwLDAsMA0KCUMtNDI5LjksNDcyLjMtNDM2LjQsNDY1LjgtNDQ0LjUsNDY1LjhMLTQ0NC41LDQ2NS44eiIvPg0KPC9zdmc+DQo="
LABEL oc.keyword="apachedirectorystudio,ldap"
LABEL oc.cat="development"
LABEL oc.launch="Apache Directory Studio.Apache Directory Studio"
LABEL oc.template="abcdesktopio/oc.template.ubuntu.22.04"
ENV ARGS="-configuration .eclipse/1988419495_linux_gtk_x86_64"
LABEL oc.name="apachedirectorystudio"
LABEL oc.displayname="Apache Directory Studio"
LABEL oc.path="/usr/local/ApacheDirectoryStudio/ApacheDirectoryStudio"
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 "apachedirectorystudio"
ENV APPBIN "/usr/local/ApacheDirectoryStudio/ApacheDirectoryStudio"
LABEL oc.args="-configuration .eclipse/1988419495_linux_gtk_x86_64"
ENV APP "/usr/local/ApacheDirectoryStudio/ApacheDirectoryStudio"
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 apachedirectorystudio

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

build the Dockerfile to create a container image

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

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