mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-05-12 17:05:05 +00:00
* Revert "Revert "ACS-4137 Produce Multi-Arch Docker images (#1656)" (#1796)" This reverts commit ddbaabb71312505dc7dfcfbf909411ce80ed1f11. * ACS-4137 Remove default multi-arch docker-maven-plugin configuration
21 lines
1.1 KiB
Bash
Executable File
21 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
BUILDER_NAME="${1}"
|
|
TARGET_REGISTRY="${2}"
|
|
TARGET_IMAGE="${3}"
|
|
IMAGE_TAG="${4}"
|
|
|
|
#Create a `docker-container` builder with host networking and required flags (quay.io)
|
|
docker --config target/docker/"${TARGET_REGISTRY}"/"${TARGET_IMAGE}"/"${IMAGE_TAG}"/docker \
|
|
buildx create --use --name "${BUILDER_NAME}" --driver-opt network=host \
|
|
--buildkitd-flags '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
|
|
|
|
#Create a `docker-container` builder with host networking and required flags (docker.io)
|
|
docker --config target/docker/"${TARGET_IMAGE}"/"${IMAGE_TAG}"/docker \
|
|
buildx create --use --name "${BUILDER_NAME}" --driver-opt network=host \
|
|
--buildkitd-flags '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
|
|
|
|
#Create a `docker-container` builder with host networking and required flags (local registry)
|
|
docker --config target/docker/127.0.0.1/5000/"${TARGET_IMAGE}"/"${IMAGE_TAG}"/docker \
|
|
buildx create --use --name "${BUILDER_NAME}" --driver-opt network=host \
|
|
--buildkitd-flags '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host' |