Files
alfresco-community-repo/scripts/prepare_buildx.sh
evasques 9ee2d1907c Migrate to GitHub Actions (#1863)
* Remove travis configuration

* Add github actions configuration

* ACS-4776 Finalize deprecation of BitlyUrlShortenerImpl (#1787)

(cherry picked from commit 7b87ee628d)

* Trigger tests [db][ags][tas][ags on MySQL]

* Add packaging scripts for TAS tests [db][ags][tas][ags on MySQL]

* ACS-3841 Add missing logs for WebDAV TAS tests (#1629)

* ACS-3841 Add missing logs

* ACS-3841 Reformat code + fix grep

(cherry picked from commit cdbe3292e0)

* Trigger tests [db][ags][tas][ags on MySQL]

* Enforce order the tests run on DispositionScheduleLinkedRecordsTest

* Added AlphabeticalPriorityInterceptor for AGS Rest tests

---------

Co-authored-by: Domenico Sibilio <domenicosibilio@gmail.com>
Co-authored-by: Damian Ujma <92095156+damianujma@users.noreply.github.com>
2023-04-05 23:21:59 +01:00

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'