Skip to content

winscp-wine

winscp.svg

inherite from

abcdesktopio/oc.template.wine

Arguments

"/composer/bin/winscp.exe"

Displayname

WinSCP

Path

/usr/bin/wine

ACL

{
    "permit": [
        "all"
    ]
}

WM_CLASS

winscp.exe.Wine

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

ENV WINEARCH=win64
ENV WINEDLLOVERRIDES="mscoree,mshtml="
USER $BUSER
RUN wineboot --init
RUN curl -Ls -o /tmp/winscp553.zip http://winscp.net/download/winscp553.zip && unzip /tmp/winscp553.zip -d /composer/bin/ && rm /tmp/winscp553.zip
RUN echo disable > $WINEPREFIX/.update-timestamp
COPY --chown=$BUSER:$BUSER user.reg system.reg /composer/.wine/

JSON dump

json source file winscp-wine.d.3.0.json

{
    "acl": {
        "permit": [
            "all"
        ]
    },
    "template": "abcdesktopio/oc.template.wine",
    "preruncommands": [
        "ENV WINEARCH=win64",
        "ENV WINEDLLOVERRIDES=\"mscoree,mshtml=\"",
        "USER $BUSER",
        "RUN wineboot --init",
        "RUN curl -Ls -o /tmp/winscp553.zip http://winscp.net/download/winscp553.zip && unzip /tmp/winscp553.zip -d /composer/bin/ && rm /tmp/winscp553.zip",
        "RUN echo disable > $WINEPREFIX/.update-timestamp",
        "COPY --chown=$BUSER:$BUSER user.reg system.reg /composer/.wine/"
    ],
    "args": "/composer/bin/winscp.exe",
    "cat": "utilities",
    "debpackage": "",
    "icon": "winscp.svg",
    "keyword": "wine,scp,sftp",
    "launch": "winscp.exe.Wine",
    "rules": {
        "homedir": {
            "default": true
        }
    },
    "name": "winscp-wine",
    "displayname": "WinSCP",
    "path": "/usr/bin/wine"
}

Install the builded image

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

ABCHOST=localhost
curl --output winscp-wine.d.3.0.json https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/winscp-wine.d.3.0.json
curl -X PUT -H 'Content-Type: text/javascript' http://$ABCHOST:30443/API/manager/image -d @winscp-wine.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.wine:$TAG
USER root
ENV WINEARCH=win64
ENV WINEDLLOVERRIDES="mscoree,mshtml="
USER $BUSER
RUN wineboot --init
RUN curl -Ls -o /tmp/winscp553.zip http://winscp.net/download/winscp553.zip && unzip /tmp/winscp553.zip -d /composer/bin/ && rm /tmp/winscp553.zip
RUN echo disable > $WINEPREFIX/.update-timestamp
COPY --chown=$BUSER:$BUSER user.reg system.reg /composer/.wine/
LABEL oc.icon="winscp.svg"
LABEL oc.icondata="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwI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jIDAsLTAuNjkyNSAwLjU1NzUsLTEuMjUgMS4yNSwtMS4yNSB6IgogICAgIGlkPSJyZWN0Ni0wIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJzc2Njc3NzIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmIgogICAgIGQ9Im0gNi41LDEyLjc1IDMuNSwwIEwgOC41LDExLjI1IDEwLDkuNzQ5OTk5NyAxNC4yNSwxNCAxMCwxOC4yNSBsIC0xLjUsLTEuNSAxLjUsLTEuNSAtMy41LDAgbSAwLC0yLjUiCiAgICAgaWQ9InBhdGg4IiAvPgo8L3N2Zz4K"
LABEL oc.keyword="winscp-wine,wine,scp,sftp"
LABEL oc.cat="utilities"
LABEL oc.launch="winscp.exe.Wine"
LABEL oc.template="abcdesktopio/oc.template.wine"
ENV ARGS="/composer/bin/winscp.exe"
LABEL oc.name="winscp-wine"
LABEL oc.displayname="WinSCP"
LABEL oc.path="/usr/bin/wine"
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 "winscp-wine"
ENV APPBIN "/usr/bin/wine"
LABEL oc.args="/composer/bin/winscp.exe"
ENV APP "/usr/bin/wine"
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 winscp-wine

wget https://raw.githubusercontent.com/abcdesktopio/oc.apps/main/winscp-wine.d

build the Dockerfile to create a container image

docker build --build-arg TAG=3.0 -f winscp-wine.d -t winscp-wine .

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