-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify how docker commands get executed in Breeze (#36131)
So far we executed commands in CI image in breeze in two ways: * entering the shell (which runs docker-compose under the hood) * running `docker run` with the CI image This requires rather complex mapping of environment variables between `docker-compose` and `docker`. Since recently (#35862) we can use `shell` command to run commands in very similar way as docker run (with docker-compose, without database and extra components - just using the same `breeze shell` mechanisms. This PR converts all the usages of docker run CI_IMAGE we had and converts them to use modified `enter_shell` method that has been moved to "docker_command_utils". This also simplified passing arguments to the "enter_shell" command - no longer need to filter out none parameters and **kwargs - all parameters are passed explicitly. This also allowed to remove some of the code (extracting args, filtering_out_none) that are not used anymore. The entypoint CI has been slightly refactored - to provide a bit better structure and handle `--skip-environment-initialization` better - we can now both set `--use-airflow-version` and `--skip-environment-initialization` which was not possible before. (cherry picked from commit 2d15dbf)
- Loading branch information
Showing
28 changed files
with
675 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.