Skip to content

MySQL

Skpr provides all environments with automated database images for convenient and secure development environments and CI pipeline builds.

Usage

Pull

The MySQL pull command can be used for pulling many databases quickly which relate to a project's environment.

The following command will pull all the databases which are used for the dev environment.

$ skpr mysql pull dev
Pulling: xxxxxxxxxxx.dkr.ecr.ap-southeast-2.amazonaws.com/example-project1/mysql:dev-default-latest

The output of the above command indicates the name of the Docker image which can be used with Docker Compose or other tools.

Create

The MySQL create command can be used for creating new database images for a project's environment.

The following command will pull all the databases which are used for the dev environment.

$ skpr mysql create dev
Creating new mysql image for dev

Once complete, you can pull the new image on to your local machine and use it in development environments, or simply let your CI pipelines take care of the rest.