feat: datumctl compute build - #238
Open
savme wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
Lint errors are due to a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
datumctl compute build, which builds a standard Dockerfile into an OCI image that runs on Datum Compute.datumctl compute build .with no flags does a local build and reports success/failure without publishing anything, so it's safe to run as a pre-flight check.Dockerfileoverrides (Dockerfile.datum is picked up by default),--targetfor multi-stage builds,--build-arg- similar conventions asdocker build.--fix) missing shared libraries, missing modules needed for hostname resolution, wrong CPU architecture, non-executable entrypoints, and shell-formCMDs that need a shell not present in the final image - tracing through startup scripts and wrapper entrypoints to check the real payload, not just the first thing exec'd. Also transparently wraps the startup command to honorWORKDIR, since the runtime doesn't apply it on its own.--analyze/--fix: surfaces the above as actionable findings;--fixapplies the safe, exact-line Dockerfile edits it can (e.g. adding a missingCOPYfor a runtime library) and rebuilds, repeating since some issues only surface after an earlier fix is rebuilt in.--output: push to a registry, write a.tarOCI archive, or write a local OCI layout directory; registry pushes ask for confirmation unless--pushis passed (for CI).--kraftfile), the build is delegated entirely to the Unikraft's CLI instead of reimplementing its build semantics.datumctl compute build inspect: inspects an already-built image.Closes #174