summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile6
-rw-r--r--pkg/api/handlers/utils/images.go5
2 files changed, 3 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile
index 623747295..16552e6b7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,11 +10,7 @@ ENV SCRIPT_BASE=./contrib/cirrus
ENV PACKER_BASE=$SCRIPT_BASE/packer
# Only add minimal tooling necessary to complete setup.
-ADD /$SCRIPT_BASE $GOSRC/$SCRIPT_BASE
-ADD /hack/install_catatonit.sh $GOSRC/hack/
-ADD /cni/*.conflist $GOSRC/cni/
-ADD /test/*.json $GOSRC/test/
-ADD /test/*.conf $GOSRC/test/
+ADD / $GOSRC
WORKDIR $GOSRC
# Re-use repositories and package setup as in VMs under CI
diff --git a/pkg/api/handlers/utils/images.go b/pkg/api/handlers/utils/images.go
index 91e91121f..521f727be 100644
--- a/pkg/api/handlers/utils/images.go
+++ b/pkg/api/handlers/utils/images.go
@@ -3,6 +3,7 @@ package utils
import (
"fmt"
"net/http"
+ "strings"
"github.com/containers/image/v5/docker"
"github.com/containers/image/v5/storage"
@@ -77,9 +78,7 @@ func GetImages(w http.ResponseWriter, r *http.Request) ([]*image.Image, error) {
if len(query.Filters) > 0 {
for k, v := range query.Filters {
- for _, val := range v {
- filters = append(filters, fmt.Sprintf("%s=%s", k, val))
- }
+ filters = append(filters, fmt.Sprintf("%s=%s", k, strings.Join(v, "=")))
}
images, err = runtime.ImageRuntime().GetImagesWithFilters(filters)
if err != nil {