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

Provide Docker Runtime #140

Open
mjallday opened this issue Jul 5, 2021 · 2 comments
Open

Provide Docker Runtime #140

mjallday opened this issue Jul 5, 2021 · 2 comments
Labels
enhancement Enhance functionality in Starlarky triaged

Comments

@mjallday
Copy link
Contributor

mjallday commented Jul 5, 2021

It would be good to have a dockerized container that allows executing starlark runtime locally.

This would be useful for local development as well as running other projects such as argo workflows.

Here's an example of how it could be used in argo

script:
 image: starlarky:1.0
 command:
 - python
 source: |
    load("@stdlib//re2j", "re2j")
    def process(input, ctx):
       # do your code here

I guess the concept here is that we'd provide an entrypoint or cmd which takes a script as an input and then allows it to be invoked by passing data via stdin/stdout.

I'm not sure exactly how the api would work but it would be useful for executing starlarky anywhere.

@mjallday mjallday added the enhancement Enhance functionality in Starlarky label Jul 5, 2021
@AndrewGold
Copy link

+1 this would be very helpful. I'm currently struggling to get the local environment set up

@Iapetus999
Copy link
Contributor

You can do this via Horizon and grpcurl
I have scripts in Horizon that do this.

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

No branches or pull requests

4 participants