summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/images_build.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-05-21 13:58:51 -0500
committerBrent Baude <bbaude@redhat.com>2020-05-21 14:22:11 -0500
commit845a795a7a1666fb8af2abc6ce93c7152f06a9b9 (patch)
tree781967bb1056e841ab2533b78958330193aa8d0a /pkg/api/handlers/compat/images_build.go
parent9d3b46624b4eb3b6eeea38b5b1057914a9ff2baf (diff)
downloadpodman-845a795a7a1666fb8af2abc6ce93c7152f06a9b9.tar.gz
podman-845a795a7a1666fb8af2abc6ce93c7152f06a9b9.tar.bz2
podman-845a795a7a1666fb8af2abc6ce93c7152f06a9b9.zip
v2 podman-remote build
this is a very basic implementation of build. some of the more advanced options need to be included still as well. i think the endpoints for compat and libpod will have to split given buildahs more advanced set of options. that should probably be done by someone more experienced with build internals. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat/images_build.go')
-rw-r--r--pkg/api/handlers/compat/images_build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go
index e208e6ddc..e9d8fd719 100644
--- a/pkg/api/handlers/compat/images_build.go
+++ b/pkg/api/handlers/compat/images_build.go
@@ -226,6 +226,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
id, _, err := runtime.Build(r.Context(), buildOptions, query.Dockerfile)
if err != nil {
utils.InternalServerError(w, err)
+ return
}
// Find image ID that was built...