mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
* ACS-4137 Update pom.xml to use buildx * ACS-4137 Update travis.yml to use buildx * ACS-4137 Update travis.yml to use buildx, newest docker version * ACS-4137 reverted unnecessary changes in travis.yml file * ACS-4137 Change deprecated <dockerFileDir> property to <contextDir>. Moved <build> section from subpoms to global pom. * ACS-4137 POM indentation fixes * ACS-4137 Fix building a multiarch image (#1697) * ACS-4137 Test wih GHA [ags][tas] * ACS-4137 Test wih GHA [ags][tas] * ACS-4137 Fix setting network [ags][tas] * ACS-4137 Fix creating builder [ags][tas] * ACS-4137 Change image tag [ags][tas] * ACS-4137 Fix starting the registry [ags][tas] * ACS-4137 Refactor code [ags][tas] * ACS-4137 Uncomment all jobs [tas][ags] * ACS-4137 Improve prepare_buildx.sh [tas][ags] * ACS-4137 Implement timeout + remove hardcoded base image tag [tas][ags] * ACS-4137 Added exec-maven-plugin to build-push-image for alfresco-governance-repository-community-base image * ACS-4137 Generalize prepare_buildx.sh + increase registry timeout * ACS-4137 merged local.registry.host and local.registry.port. Builder name changed to entitled-builder. In prepare_builder script added localhost registry checking * ACS-4137 added build-multiarch-docker-images maven profile * ACS-4137 added <BASE_IMAGE> arg to build-docker-images profile * ACS-4137 added combine.self="override" attribute to configuration in build-docker-images profile to not use buildx. Delete redundant base.image.tag * ACS-4137 Push docker images to local repository * ACS-4137 Remove useless scripts * ACS-4137 Move builder.name and local.registry properties to main pom.xml * ACS-4137 Remove useless properties definitions --------- Co-authored-by: Damian.Ujma@hyland.com <Damian.Ujma@hyland.com> Co-authored-by: Damian Ujma <92095156+damianujma@users.noreply.github.com>
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' |