Created
December 29, 2018 18:58
-
-
Save vgallet/9a052003114ce49ff71d2eb8c18450b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ClassRule | |
public static GenericContainer mysql = new GenericContainer( | |
new ImageFromDockerfile("mysql-petclinic") | |
.withDockerfileFromBuilder(dockerfileBuilder -> { | |
dockerfileBuilder.from("mysql:5.7.8") | |
// root password is mandatory | |
.env("MYSQL_ROOT_PASSWORD", "root_password") | |
.env("MYSQL_DATABASE", "petclinic") | |
.env("MYSQL_USER", "petclinic") | |
.env("MYSQL_PASSWORD", "petclinic") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment