fedora containers

This commit is contained in:
Anders Rytter Hansen 2023-11-05 17:37:56 +01:00
commit adb5e2c542
12 changed files with 363 additions and 0 deletions

View file

@ -0,0 +1,9 @@
FROM ghcr.io/andersrh/containers/fedora-toolbox/base-gui:main
WORKDIR /app
RUN wget https://download.live.ledger.com/latest/linux -O ledgerlive \
&& chmod +x ledgerlive
COPY ledgerlive.desktop /usr/share/applications/
COPY ledgerlive.png /usr/share/icons/
RUN ln -s /app/ledgerlive /usr/bin/ledgerlive

View file

@ -0,0 +1,15 @@
#!/bin/sh
APPNAME="ledgerlive"
podman build -t andersrh/fedora-toolbox/$APPNAME -f Dockerfile .
podman rm -f $APPNAME
distrobox create --image andersrh/fedora-toolbox/$APPNAME --home ~/containers/$APPNAME/ $APPNAME
distrobox enter $APPNAME -- distrobox-export --bin /app/$APPNAME --export-path ~/.local/bin --extra-flags "--enable-features=WaylandWindowDecorations --ozone-platform=wayland"
podman rm -f $APPNAME
podman create --hostname "ledgerlive.anders-fedora" --ipc host --name "ledgerlive" --network host --privileged --security-opt label=disable --user root:root --pid host --label "manager=distrobox" --env "SHELL=/bin/bash" --env "HOME=/var/home/anders" --volume /:/run/host:rslave --volume /dev:/dev:rslave --volume /sys:/sys:rslave --volume /tmp:/tmp:rslave --volume "/usr/bin/distrobox-init":/usr/bin/entrypoint:ro --volume "/usr/bin/distrobox-export":/usr/bin/distrobox-export:ro --volume "/usr/bin/distrobox-host-exec":/usr/bin/distrobox-host-exec:ro --volume "/var/home/anders/containers/$APPNAME":"/var/home/anders":rslave --volume /sys/fs/selinux --volume /var/log/journal --volume /run/user/1000:/run/user/1000:rslave --volume /etc/hosts:/etc/hosts:ro --volume /etc/localtime:/etc/localtime:ro --volume /etc/resolv.conf:/etc/resolv.conf:ro --ulimit host --annotation run.oci.keep_original_groups=1 --mount type=devpts,destination=/dev/pts --userns keep-id --entrypoint /usr/bin/entrypoint andersrh/fedora-toolbox/ledgerlive -v --name "anders" --user 1000 --group 1000 --home "/var/home/anders" --init "0" --pre-init-hooks "" -- ''
cp ledgerlive.png ~/.local/share/icons/
cp ledgerlive.desktop ~/.local/share/applications/

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type = Application
Version = 1.0
Name = Ledger Live
Comment = Ledger Live
Icon = ledgerlive
Exec = ledgerlive --enable-features=WaylandWindowDecorations --ozone-platform=wayland
Terminal = false

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB