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

runtime: implement building image in Docker runtime #760

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adambabik
Copy link
Collaborator

@adambabik adambabik commented Mar 10, 2025

This PR adds an ability to build a Docker image in Docker runtime. With runtime.docker.enabled = true, it should be possible to execute commands from Markdown files.

There are still limitations, for example, it's not possible to share env between commands.

@adambabik adambabik force-pushed the adamb/finish-impl-run-in-docker branch from 6406644 to 2324588 Compare March 10, 2025 21:54
@adambabik adambabik force-pushed the adamb/finish-impl-run-in-docker branch from 2324588 to 4b6e794 Compare March 10, 2025 21:55
@@ -47,7 +47,7 @@ project:
runtime:
# Optional Docker configuration to run code blocks in a container.
docker:
enabled: false
enabled: true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Remove before merge.

@@ -130,11 +130,6 @@ func (sl *Cache[T]) Newest() (T, bool) {
return element.Value.(*listEntry[T]).entry, true
}

// Deprecated: Use Newest instead.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Move it to a separate PR.

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

Successfully merging this pull request may close these issues.

1 participant