In CircleCI 1.0, we used to have this code:
services: - mysql database: override: - mysql -u ubuntu circle_test < scripts/db/mysql_setup.sql
Now we are migrating to 2.0 and mysql is a docker instead of a service:
version: 2 jobs: build: docker: - image: circleci/openjdk:8-jdk - image: redis:3.2.11 - image: donilan/mysql-utf8mb4
We need to prepare our database, how can I execute this
mysql -u ubuntu circle_test < scripts/db/mysql_setup.sql when mysql is dockerized?