diff --git a/Earthfile b/Earthfile index bbcd7966..0fdd1a75 100644 --- a/Earthfile +++ b/Earthfile @@ -475,7 +475,7 @@ earthly-docker: # if no dockerhub mirror is not set it will attempt to login to dockerhub using the provided docker hub username and token. # Otherwise, it will attempt to login to the docker hub mirror using the provided username and password earthly-integration-test-base: - FROM +earthly-docker + FROM --pass-args +earthly-docker RUN apk update && apk add pcre-tools curl python3 bash perl findutils expect yq && apk add --upgrade sed COPY scripts/acbtest/acbtest scripts/acbtest/acbgrep /bin/ ENV NO_DOCKER=1 diff --git a/tests/integration-base/Earthfile b/tests/integration-base/Earthfile index 586fb812..2b4c4ca1 100644 --- a/tests/integration-base/Earthfile +++ b/tests/integration-base/Earthfile @@ -8,6 +8,7 @@ test-base: ARG DOCKERHUB_MIRROR_AUTH=false ARG DOCKERHUB_MIRROR_AUTH_FROM_CLOUD_SECRETS=false ARG DOCKERHUB_AUTH=false + ARG BUILDKIT_PROJECT FROM ../..+earthly-integration-test-base \ --DOCKERHUB_MIRROR=$DOCKERHUB_MIRROR \ @@ -15,7 +16,8 @@ test-base: --DOCKERHUB_MIRROR_HTTP=$DOCKERHUB_MIRROR_HTTP \ --DOCKERHUB_MIRROR_AUTH=$DOCKERHUB_MIRROR_AUTH \ --DOCKERHUB_MIRROR_AUTH_FROM_CLOUD_SECRETS=$DOCKERHUB_MIRROR_AUTH_FROM_CLOUD_SECRETS \ - --DOCKERHUB_AUTH=$DOCKERHUB_AUTH + --DOCKERHUB_AUTH=$DOCKERHUB_AUTH \ + --BUILDKIT_PROJECT=$BUILDKIT_PROJECT # uncomment this to debug dockerhub rate-limiting issues #RUN if !grep "registry-1.docker.io.mirror.corp.earthly.dev" /root/.docker/config.json >/dev/null; then echo "The earthly mirror was not setup correctly" && exit 1; fi