apache/airflow

Breeze build image or docs behind proxy

Open

#17,158 建立於 2021年7月22日

在 GitHub 查看
 (9 留言) (0 反應) (0 負責人)Python (16,781 fork)batch import
area:dev-envarea:dev-toolsarea:production-imagegood first issuekind:feature

倉庫指標

Star
 (44,809 star)
PR 合併指標
 (平均合併 7天 18小時) (30 天內合併 834 個 PR)

描述

Hello all,

Description Add to Breeze commands build-image and build-docs (needs also in other commands?) a parameter (or more) to specify proxy configurations for the image and docs build.

Use case / motivation Recently I started to contribute to Airflow project, but I had some problems creating and configure the development environment with Breeze. My workstation is behind my company proxy and this creates a problem in the download of the necessary Python packages and the GPG public key during the image build. My workstation is already configured to work with proxy (I configured apt, docker...) but in this case, it didn't work.

I have a similar problem with ./breeze build-docs command.

Are you willing to submit a PR?

I'm not an expert in Breeze or bash script. Applying these 2 changes was enough to be able to build the image with Breeze:

  1. scripts/ci/libraries/_build_images.sh image

  2. scripts/docker/install_mysql.sh image

But of course, it will be better to use some global parameters, and I don't know if there are other cases where it is important to set proxy configuration.

貢獻者指南