potiuk commented on a change in pull request #9129:
URL: https://github.com/apache/airflow/pull/9129#discussion_r435242982
##########
File path: Dockerfile.ci
##########
@@ -340,6 +308,23 @@ RUN if [[ -n "${ADDITIONAL_PYTHON_DEPS}" ]]; then \
pip install ${ADDITIONAL_PYTHON_DEPS}; \
fi
+RUN \
+ export AWSCLI_IMAGE="amazon/aws-cli:latest" && \
+ export AZURECLI_IMAGE="mcr.microsoft.com/azure-cli:latest" && \
+ export GCLOUD_IMAGE="gcr.io/google.com/cloudsdktool/cloud-sdk:latest" && \
+ echo -e "\
+ alias aws=\"docker run --rm -it -v /root/.aws:/root/.aws ${AWSCLI_IMAGE}\"
\n\
Review comment:
It will work OK. I tested it. There are two ways of running breeze ( I
described it with BREEZE.rst)
1) if you run it as normal you would mount the /root/.aws from the container
which means that you have to authenticate separately and this authentication
will not survive a restart of Breeze.
2) if you run `breeze --forward-credentials` it will mount your
"${HOME}/.aws" to the breeze container's /root/.aws and from there it will be
further mounted to the "aws" image. This means that you can use your host
credentials and they will survive Breeze restart.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]