sdk hotfix

This commit is contained in:
Aiden McClelland
2025-02-12 17:11:54 -07:00
parent b88b24e231
commit 44aa3cc9b5
5 changed files with 15 additions and 18 deletions

View File

@@ -422,6 +422,9 @@ impl ImageSource {
// docker buildx build ${path} -o type=image,name=start9/${id}
let tag = format!("start9/{id}/{image_id}:{}", new_guid());
let mut command = Command::new(CONTAINER_TOOL);
if CONTAINER_TOOL == "docker" {
command.arg("buildx");
}
command
.arg("build")
.arg(workdir)
@@ -553,6 +556,7 @@ impl ImageSource {
Command::new(CONTAINER_TOOL)
.arg("create")
.arg(&docker_platform)
.arg("--entrypoint=/bin/sh")
.arg(&tag)
.invoke(ErrorKind::Docker)
.await?,