Commit e559c95f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add unsupported docker-desktop

parent c0bd8188
#!/bin/sh
PKGNAME=docker-desktop
SUPPORTEDARCHES="x86_64 aarch64"
#VERSION="$2"
DESCRIPTION="Docker Desktop from the official site"
URL="https://docs.docker.com/desktop/install/ubuntu/"
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-x86_64.rpm"
;;
deb)
PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-amd64.deb"
;;
esac
repack=''
if [ "$(epm print info -s)" = "alt" ] ; then
PKGURL="https://desktop.docker.com/linux/main/amd64/139021/docker-desktop-4.28.0-amd64.deb"
repack='--repack'
fi
epm install $repack "$PKGURL"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
add_electron_deps
fix_chrome_sandbox
# conflicts with docker-buildx
remove_file /usr/lib/docker/cli-plugins/docker-buildx
add_requires /usr/bin/docker
ln -s usr/bin/docker usr/local/bin/com.docker.cli
pack_file /usr/local/bin/com.docker.cli
add_bin_link_command $PRODUCT /opt/docker-desktop/bin/docker-desktop
add_bin_link_command docker-index /opt/docker-desktop/bin/docker-index
#echo 'Enabling use of privileged ports by Docker Desktop'
#setcap cap_net_bind_service,cap_sys_resource=+ep /opt/docker-desktop/bin/com.docker.backend || echo 'Error: Docker Desktop will not be able to bind to privileged ports'
#systemctl start --user docker-desktop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment