We already support for most of the same args as docker buildx build - we should make it complete, I think the big remaining one is unikraft build --build-context. See **https://docs.docker.com/build/concepts/context/.
For implementation details, this is originally done in buildx around here: https://github.com/docker/buildx/blob/3e413a05dfef87849f252fc85be7e07f32d75b99/build/build.go#L112-L112
We'd need to grab some of this parsing logic (maybe via imports, maybe vendoring if we can't), then making sure we support setting build contexts.
Also we should have tests around the rest of the build tests.
Internal issue: https://linear.app/unikraft/issue/TOOL-831/add-support-for-build-context-to-unikraft-build
We already support for most of the same args as
docker buildx build- we should make it complete, I think the big remaining one isunikraft build --build-context. See **https://docs.docker.com/build/concepts/context/.For implementation details, this is originally done in buildx around here: https://github.com/docker/buildx/blob/3e413a05dfef87849f252fc85be7e07f32d75b99/build/build.go#L112-L112
We'd need to grab some of this parsing logic (maybe via imports, maybe vendoring if we can't), then making sure we support setting build contexts.
Also we should have tests around the rest of the build tests.
Internal issue: https://linear.app/unikraft/issue/TOOL-831/add-support-for-build-context-to-unikraft-build