I do have an app that has multi-tenant architecture and does create a new database via executing shell command calling
exec() in PHP code. The thing is that because of such a call, I can’t use multiple docker images for multiple databases. I need a single docker image with mutliple databases. Is that possible?
version: 2 jobs: build: docker: - image: circleci/php:7.1-node-browsers - image: tkuchiki/delayed-mysql environment: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_ROOT_PASSWORD: '' MYSQL_DATABASE: circle_test steps: - checkout - run: sudo apt-get install mysql-client --allow-unauthenticated - run: mysql -u root -e "create database production_flow" --protocol=tcp