Skip to content

Commit

Permalink
Add pypirc initialization (apache#11386)
Browse files Browse the repository at this point in the history
This PR needs to be merged first in order to handle the apache#11385
which requires .pypirc to be created before dockerfile gets build.

This means that the script change needs to be merged to master
first in this PR.
  • Loading branch information
potiuk authored Oct 9, 2020
1 parent 29a145c commit e198077
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
!NOTICE
!.github
!empty
!.pypirc

# Avoid triggering context change on README change (new companies using Airflow)
# So please do not uncomment this line ;)
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,5 @@ Chart.lock

# Might be generated when you build wheels
pip-wheel-metadata

.pypirc
6 changes: 6 additions & 0 deletions scripts/ci/libraries/_initialization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ function initialization::create_directories() {
export FILES_DIR="${AIRFLOW_SOURCES}/files"
readonly FILES_DIR

# Create an empty .pypirc file that you can customise. It is .gitignored so it will never
# land in the repository - it is only added to the "build image" of production image
# So you can keep your credentials safe as long as you do not push the build image.
# The final image does not contain it.
touch "${AIRFLOW_SOURCES}/.pypirc"

# Directory where all the build cache is stored - we keep there status of all the docker images
# As well as hashes of the important files, but also we generate build scripts there that are
# Used to execute the commands for breeze
Expand Down

0 comments on commit e198077

Please sign in to comment.