Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Runners" like docker/podman/shell/etc #763

Closed
endigma opened this issue Jun 9, 2022 · 3 comments
Closed

"Runners" like docker/podman/shell/etc #763

endigma opened this issue Jun 9, 2022 · 3 comments

Comments

@endigma
Copy link

endigma commented Jun 9, 2022

In a taskfile, being able to define an environment for the command to run in would be useful. This could be something like:

tasks:
    setup:
        runner:
            container:
                runtime: podman
                image: ubuntu:latest
                mounts:
                 - "./app:/app"
                wd: "/app"
                ... other flags turned into opts
            # shell: zsh / python3 / node / etc repls
        cmds:
            - ... commands

I know this is possible by just inlining this sort of thing or moving it into scripts, but I still think it would be a valuable addition.

@andreynering
Copy link
Member

Hi @endigma, and thanks for opening this issue.

We probably won't build integrations with so many tools.

Docker support specifically can be built at some point, but it is not so simple, and it would be better to have an issue specifically for it. #285 has some history.

@endigma
Copy link
Author

endigma commented Jun 12, 2022

Potentially a blanket solution like "interpreter"? Could define some command to invoke and expect it to be interactive, similar to a shebang

@ghostsquad ghostsquad added the v4 label Jun 12, 2022
@ghostsquad ghostsquad linked a pull request Jun 12, 2022 that will close this issue
@pd93 pd93 removed the v4 label Oct 15, 2022
@andreynering
Copy link
Member

FYI: a PoC is currently open on #974.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants