potiuk commented on a change in pull request #9129:
URL: https://github.com/apache/airflow/pull/9129#discussion_r435185248



##########
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:
       We can work it out - if you want to do terraform similar way - the worst 
that we will be able to do is to build our own image with terraform, aws, az 
also embedded :). But I think we can work it out with some smart aliases and 
docker-in-docker as well.




----------------------------------------------------------------
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]


Reply via email to