Re: Shebang spawning podman/docker containerized interpreter?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Apr 2020 at 09:50, Pavel Raiskup <praiskup@xxxxxxxxxx> wrote:
>
> Hey all, I'd like to write scripts like:
>
>     $ cat script
>     #! /bin/shebang which python3-evaluates this in container from image FOO
>     print("Hello world")
>
> .. and be able to run them just like `./script [ARGS ...]`.
>
> I played a bit with [1] today, and I'd like to package it to Fedora for at
> least my personal convenience,  but I'm rather asking whether there isn't
> something like that already (perhaps more robust and working everywhere).
>
> [1] https://github.com/praiskup/container-shebang

Hello, it is interesting. I needed to look at the readme properly to
understand what it does: https://github.com/praiskup/container-shebang

It might be a bit cumbersome when you want to change container image
in which the script should be evaluated, no? Cause you need:

#!/bin/container-shebang --image fedora:32

inside the script. Maybe if you connect it with environment variables
or specify just "fedora" instead of "fedora:32"...

What's the use-case by the way? Is host execution out of date? :)
clime

>
> Pavel
>
>
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux