Skip to content

Conversation

@detjensrobert
Copy link
Contributor

@detjensrobert detjensrobert commented Oct 27, 2024

Implements beavercds build. Uses the /build enpoint on the daemon REST API for compatibility with Docker and Podman.

This uses the "legacy" docker build api, not Buildkit / docker buildx. Dealing with Buildkit is possible, but more complicated and not cross-compatible with Podman, and spinning up an isolated Buildkit builder container is even more complicated to talk to. This still works with Docker as they have not removed support for the legacy endpoint yet; I am not sure if the API endpoint is actually Buildkit under the hood or not.
EDIT: the REST api endpoint is actually Buildkit now.

Depends on #18, #20

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
- coerce string `build:` directory into full build context object
- allow only one of either `build:` or `image:` fields

Signed-off-by: Robert Detjens <github@detjens.dev>
also adds a directory field to ChallengeConfig struct to hold the reference
path for the challenge

Signed-off-by: Robert Detjens <github@detjens.dev>
bollard wants to use HashMap to talk to the docker daemon, and we don't need
the extra features BTreeMap offers. simpler to agree on HashMap.

Signed-off-by: Robert Detjens <github@detjens.dev>
does not push yet, and probably missing other stuff

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Makes more sense for these to be comments.

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
@detjensrobert detjensrobert self-assigned this Oct 27, 2024
Signed-off-by: Robert Detjens <github@detjens.dev>
@detjensrobert detjensrobert force-pushed the dr/build-implementation branch from 9f244b8 to 147a138 Compare October 27, 2024 21:25
Copy link

@cacama-valvata cacama-valvata left a comment

Choose a reason for hiding this comment

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

Reviewed synchronously 11/05/24 -- approved

@detjensrobert detjensrobert merged commit 84058af into main Nov 6, 2024
3 checks passed
@detjensrobert detjensrobert deleted the dr/build-implementation branch November 6, 2024 03:32
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.

3 participants