Support multi-architecture containers.
[lgpl/argeo-commons.git] / dist / containers / buildah-common
index da311af2c3870c3e7f2747f44591af439644571c..6e9002815ba95a6572381721140aaf3af9522252 100755 (executable)
@@ -1,12 +1,25 @@
 #!/bin/sh
 
-## Log-in to Red Hat registry first
+## Log-in to registries first
 # podman login registry.redhat.io
-
-source ./buildah-metadata
+# podman login docker.io
 
 # Metadata
 buildah config --label maintainer="Mathieu Baudier, mbaudier at argeo.org" $container
 buildah config --created-by "Mathieu Baudier, mbaudier at argeo.org" $container
 buildah config --author "Argeo GmbH, http://www.argeo.org, contact at argeo.org" $container
 buildah config --label vendor="Argeo GmbH" $container
+
+# Remove Red Hat labels
+buildah config --label authoritative-source-url= $container
+buildah config --label com.redhat.build-host= $container
+buildah config --label com.redhat.component= $container
+buildah config --label com.redhat.license_terms= $container
+buildah config --label io.k8s.description= $container
+buildah config --label io.k8s.display-name= $container
+buildah config --label io.openshift.expose-services= $container
+buildah config --label io.openshift.tags= $container
+buildah config --label vcs-ref= $container
+buildah config --label vcs-type= $container
+buildah config --label summary= $container
+