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

Create getting started example #3677

Closed
helderco opened this issue Nov 4, 2022 · 2 comments
Closed

Create getting started example #3677

helderco opened this issue Nov 4, 2022 · 2 comments
Assignees

Comments

@helderco
Copy link
Contributor

helderco commented Nov 4, 2022

Needed ASAP:

Idea

Test python code against multiple python versions.

Story

Similar to the Go SDK getting started guide.

  1. Test one version
  2. Loop over multiple versions
  3. Use async concurrency for better performance

@vikram-dagger The cowsay example is pretty simple to start with if you'd rather have that as the getting started and use the test story above as a more elaborate guide.

@helderco helderco self-assigned this Nov 4, 2022
@helderco helderco added this to the Python SDK 0.1.0 milestone Nov 4, 2022
@helderco
Copy link
Contributor Author

helderco commented Nov 7, 2022

@vikram-dagger The examples repo depends on #3713, and also an upcoming PR for #3686. I'm sharing sooner to help you with the guide.

If you need to run them in the meantime you can use the first PR and follow the instructions to "Run the engine" in #3642 (comment).

Feel free to close this issue when you have what you need for the "Getting started" guide.

@helderco
Copy link
Contributor Author

helderco commented Nov 7, 2022

Note on concurrency: The Go SDK had a parallelism example in the end that was later removed. It that case there was only one execution at the end so it was possible to let BuildKit do its thing there. In these examples, each version requires a separate build so we do have increased performance when doing concurrency in Python.

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

1 participant