diff --git a/.ebextensions/00-install-testing-mysql.config b/.ebextensions/00-install-testing-mysql.config new file mode 100644 index 00000000..8c709ebb --- /dev/null +++ b/.ebextensions/00-install-testing-mysql.config @@ -0,0 +1,24 @@ +packages: + yum: + docker: [] + +commands: + 01_start_docker_service: + command: "sudo service docker start" + ignoreErrors: false + + 02_pull_mysql_image: + command: "sudo docker pull mysql:8.0" + ignoreErrors: false + + 03_run_mysql_container: + command: | + sudo docker run -d \ + --name=mysql80 \ + -e MYSQL_ROOT_PASSWORD=ddingdong \ + -e MYSQL_DATABASE=ddingdong_test \ + -e MYSQL_USER=myuser \ + -e MYSQL_PASSWORD=ddingdong\ + -p 3306:3306 \ + mysql:8.0 + ignoreErrors: false