We have a number of "in_container" scripts written in Bash, They are doing a number of houseekeeping stuff but since we already have Python 3.7+ inside the CI image, we could modularise them more and make them run from external and simplify entrypoint_ci (for example separate script for tests).
# in 
        # us
        # to 
        get_console().print(
            f"[warning]Bringing the project down as {shell_params.use_airflow_version} "
            f"airflow version is used[/]"
        )
        bring_compose_project_down(preserve_volumes=False, shell_params=shell_params)
    if shell_params.backend == "sqlite" and shell_params.executor != SEQUENTIAL_EXECUTOR:
        get_console().print(
            f"\n[warning]backend: sqlite is not "
            f"compatible with executor: {shell_params.executor}. "
            f"Changing the executor to {SEQUENTIAL_EXECUTOR}.\n"
        )
        shell_params.executor = SEQUENTIAL_EXECUTOR
    if shell_params.executor == "CeleryExecutor" and shell_params.use_airflow_version:
        if shell_params.airflow_extras and "celery" not in shell_params.airflow_extras.split():
            get_console().print(
                f"\n[warning]CeleryExecutor requires airflow_extras: celery. "
                f"Adding celery to extras: '{shell_params.airflow_extras}'.\n"
            )
            shell_params.airflow_extras += ",celery"
        elif not shell_params.airflow_extras:
            get_console().print(
                "\n[warning]CeleryExecutor requires airflow_extras: celery. "
                "Setting airflow extras to 'celery'.\n"
            )
            shell_params.airflow_extras = "celery"
    if shell_params.restart:
        bring_compose_project_down(preserve_volumes=False, shell_params=shell_params)