Required:
- Docker
- python 2.7.10
- pip packages (mysql-connector-python-rf)
Instructions:
docker-compose up -d
python ecs_challenge.py db_scripts ecs_user localhost ecs_database ecs_user
Notes/ observations:
- Need to handle absolute/ relative paths
- Would typically use flyway/ liquibase for tasks like this
- Task took the complete 4 hours, been learning python over Christmas so thought it would be more interesting to use that instead of bash!
- Haven't handled scripts containing no number, just ignored
- Example logs provided:
first_run.log
&second_run.log