potiuk commented on a change in pull request #9129:
URL: https://github.com/apache/airflow/pull/9129#discussion_r435075650
##########
File path: Dockerfile.ci
##########
@@ -338,6 +308,24 @@ RUN if [[ -n "${ADDITIONAL_PYTHON_DEPS}" ]]; then \
pip install ${ADDITIONAL_PYTHON_DEPS}; \
fi
+ARG AWSCLI_IMAGE="amazon/aws-cli:latest"
+ENV AWSCLI_IMAGE=${AWSCLI_IMAGE}
+
+ARG AZURECLI_IMAGE="mcr.microsoft.com/azure-cli:latest"
+ENV AZURECLI_IMAGE=${AZURECLI_IMAGE}
+
+ARG GCLOUD_IMAGE="gcr.io/google.com/cloudsdktool/cloud-sdk:latest"
+ENV GCLOUD_IMAGE=${GCLOUD_IMAGE}
+
+RUN echo -e "\
+ alias aws=\"docker run --rm -it -v /root/.aws:/root/.aws ${AWSCLI_IMAGE}\"
\n\
+ alias aws-update=\"docker pull ${AWSCLI_IMAGE}\" \n\
+ alias az=\"docker run --rm -it -v /root/.azure:/root/.azure
${AZURECLI_IMAGE} az\" \n\
+ alias az-update=\"docker pull ${AZURECLI_IMAGE}\" \n\
+ alias gcloud=\"docker run --rm -it -v /root/.config:/root/.config
${GCLOUD_IMAGE} gcloud\" \n\
+ alias gcloud-update=\"docker pull ${GCLOUD_IMAGE}\" \n\
+ " >> ~/.bashrc
+
Review comment:
I think it wil work. In the worst case we can create "/usr/bin/gcloud"
scripts. I had it done like that originally but aliases sound much cleaner.
----------------------------------------------------------------
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]