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

Make it possible to run plan.run_sh against a docker image built on the fly with ImageBuildSpec #2224

Closed
leovct opened this issue Feb 27, 2024 · 0 comments
Labels

Comments

@leovct
Copy link
Collaborator

leovct commented Feb 27, 2024

Background & motivation

I'm currently working on a blockchain devnet that require basic setup, e.g. creating a list of validators and generating the genesis file. The problem is that I need a custom docker image with a bunch of utilities and smart contracts so I would like to be able to run plan.run_sh against this custom image and extract the relevant files.

To overcome this problem, I'm currently starting a service, running my custom image, storing the relevant files and stopping the service. This is not a big deal at the moment but it would be great to have such feature!

Desired behaviour

Provide a way to use ImageBuildSpec in the image field of plan.run_sh. Just like what the image field of ServiceConfig allows to do.

How important is this to you?

Nice to have; this feature would make using Kurtosis more enjoyable.

What area of the product does this pertain to?

Other: anything not covered by the above

@github-actions github-actions bot added the nice to have Nice to have feature label Feb 27, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 17, 2024
## Description
ex. 
```
def run(plan, args):
    result = plan.run_sh(
        run="echo ${SOME}",
        # build image containing openssl, gh cli, python, and bash, etc.
        image=ImageBuildSpec(
            build_context_dir="./",
            image_name="taskimg",
        ),
        env_vars={
            "SOME": "THING",
        }
    )
    plan.print(result)
```

## Is this change user facing?
YES

## References:
#2224
@leovct leovct closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant