tfx.orchestration.airflow.test_utils.create_mysql_container

View source on GitHub

Create a mysql docker container and returns port to it.

A created mysql will have 'airflow' database and 'tfx' user without password.

container_name A name of the new container.

The new port number.

RuntimeError When mysql couldn't respond in pre-defined time limit or failed to run initialization sqls.