Kron4ek / Conty

Easy to use unprivileged Linux container packed into a single portable executable
MIT License
772 stars 45 forks source link

About securely sharing Nvidia drivers between multiple "Conty" instances #153

Closed ivan-hc closed 3 months ago

ivan-hc commented 3 months ago

What if once built, the "${overlayfs_dir}"/up/usr directory is just a link to the pre-existing drivers directory?

Kron4ek commented 3 months ago

I implemented the sharing. According to my limited testing it works, but more extensive testing is required. Please try it with your AppImages.

ivan-hc commented 3 months ago

Just tested, someting went wrong while usind dwarfs

Istantanea_2024-08-01_19-03-49

ivan-hc commented 3 months ago

I think the issue ir here

if [ ! -f "${utils}" ] || [ "$(wc -c < "${utils}")" -lt 100000 ]; then
    if [ -d .git ]; then
        git lfs install
        git lfs fetch origin master
        git lfs checkout
        fi

    if [ ! -f "${utils}" ] || [ "$(wc -c < "${utils}")" -lt 100000 ]; then
        if git config --get remote.origin.url; then
            utils_url="$(git config --get remote.origin.url)"/raw/master/${utils}
            else
            utils_url="https://github.com/Kron4ek/Conty/raw/master/${utils}"
        fi

            rm -f "${utils}"
        curl -#LO "${utils_url}"
        fi
fi

I also see that the first "if" is doubled

ivan-hc commented 3 months ago

For now I'll restore the pervious function, just to test the Nvidia changes

ivan-hc commented 3 months ago

Hey, worked great! Here are Boxes and VirtualBox running together!

Istantanea_2024-08-01_19-45-27

Thanks