Skip to content

Files

Latest commit

 

History

History
This branch is 4 commits ahead of GoogleCloudPlatform/cloudbuild-integration-testing:master.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 21, 2019
Feb 21, 2019
Feb 21, 2019

To build MySQL backend container:

docker build -t mysql .

To run container:

docker run --name cookiedb -e MYSQL_ROOT_PASSWORD=foobar -d mysql

It will take a sec for it to warm up

To run commands against a live MySQL container (e.g. to generate test data), do:

docker run -it --link cookiedb:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"foobar"'

Resources

https://hub.docker.com/_/mysql/