On 4/15/20 15:01, clime wrote:
> On Wed, 15 Apr 2020 at 09:50, Pavel Raiskup <prais...@redhat.com> 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

I would make this less Fedora specific.  Default to $ID and $VERSION_ID
in /etc/os-release

That way it could work on RHEL, Centos, Ubuntu ... as well as Fedora.

> 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@lists.fedoraproject.org
>> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>> 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@lists.fedoraproject.org
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> 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@lists.fedoraproject.org

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to