apache / apache/airflow

Breeze build image or docs behind proxy

Open
#17,158 9 comments 0 reactions 0 assignees View on GitHub
area:dev-env area:dev-tools area:production-image good first issue kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

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](https://user-images.githubusercontent.com/18025873/126613660-72fc8184-a3c3-4251-9805-eeaa26bf74cc.png)

2. scripts/docker/install_mysql.sh
![image](https://user-images.githubusercontent.com/18025873/126613673-f17ad2ee-5049-4bcd-83e9-c8a78f87c9f3.png)

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.

Contributor guide

Open the contributing guide

Research direction

Start with the Breeze build-image and build-docs commands, then trace proxy handling in scripts/ci/libraries/_build_images.sh and scripts/docker/install_mysql.sh. Determine whether the same configuration must reach other build commands. Done means proxy settings can be supplied consistently for image and documentation builds, including package and GPG-key downloads.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, docker
Domain
build-system, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.