Skip to content

Commit

Permalink
Fix manual refresh images script (#45331)
Browse files Browse the repository at this point in the history
The script can be used to manually refresh ARM images until we complete
ARC migration. For now what is important is the refresh of the CI image
not PROD image - and that works after small adjustment. For now we
are commenting out the PROD part - as this is not necessarily needed and
it need a bit more adjustment and thinking how to do it properly after
separation of task_sdk so we comment it for now.
  • Loading branch information
potiuk authored Jan 1, 2025
1 parent b5c1bcf commit 53ec279
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ def _build_local_build_image():
".",
"-f",
"airflow-build-dockerfile",
"--load",
"--tag",
AIRFLOW_BUILD_IMAGE_TAG,
],
Expand Down
44 changes: 21 additions & 23 deletions dev/refresh_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,30 @@ for PYTHON in 3.9 3.10 3.11 3.12
do
breeze ci-image build \
--builder airflow_cache \
--run-in-parallel \
--prepare-buildx-cache \
--platform "${PLATFORM}" \
--python ${PYTHON} \
--verbose
done

rm -fv ./dist/* ./docker-context-files/*

breeze release-management prepare-provider-packages \
--package-list-file ./prod_image_installed_providers.txt \
--package-format wheel \
--version-suffix-for-pypi dev0

breeze release-management prepare-airflow-package --package-format wheel --version-suffix-for-pypi dev0

mv -v ./dist/*.whl ./docker-context-files && chmod a+r ./docker-context-files/*

for PYTHON in 3.9 3.10 3.11 3.12
do
breeze prod-image build \
--builder airflow_cache \
--run-in-parallel \
--install-packages-from-context \
--prepare-buildx-cache \
--platform "${PLATFORM}" \
--python ${PYTHON} \
--verbose
done
#rm -fv ./dist/* ./docker-context-files/*
#
#breeze release-management prepare-provider-packages \
# --package-list-file ./prod_image_installed_providers.txt \
# --package-format wheel \
# --version-suffix-for-pypi dev0
#
##breeze release-management prepare-airflow-package --package-format wheel --version-suffix-for-pypi dev0
#
#mv -v ./dist/*.whl ./docker-context-files && chmod a+r ./docker-context-files/*
#
#for PYTHON in 3.9 3.10 3.11 3.12
#do
# breeze prod-image build \
# --builder airflow_cache \
# --install-packages-from-context \
# --prepare-buildx-cache \
# --platform "${PLATFORM}" \
# --python ${PYTHON} \
# --verbose
#done

0 comments on commit 53ec279

Please sign in to comment.