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
#!/bin/sh | |
# strict mode: error if commands fail or if unset variables are used | |
set -eu | |
if [ "$#" -lt 2 ] | |
then | |
echo Usage: `basename $0` "<limit> <command>..." | |
echo or: `basename $0` "<memlimit> -s <swaplimit> <command>..." | |
exit 1 |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
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 -> { | |
.... | |
}) | |
.withExposedPorts(3306) | |
.withCreateContainerCmdModifier( | |
new Consumer<CreateContainerCmd>() { | |
@Override |
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") | |
.env("MYSQL_ROOT_PASSWORD", "root_password") | |
.env("MYSQL_DATABASE", "petclinic") | |
.env("MYSQL_USER", "petclinic") | |
.env("MYSQL_PASSWORD", "petclinic") | |
.add("a_schema.sql", "/docker-entrypoint-initdb.d") |
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") |
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") | |
} | |
); |
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
@RunWith(SpringRunner.class) | |
@DataJpaTest(includeFilters = @ComponentScan.Filter(Service.class)) | |
@TestPropertySource(locations="classpath:application-test.properties") | |
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE) | |
public class ClinicServiceTests { | |
... | |
} |
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 redis = new GenericContainer("redis:3.0.2") | |
.withExposedPorts(6379); |
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
GenericContainer container = new GenericContainer("docker.elastic.co/elasticsearch/elasticsearch:6.1.1") | |
.withEnv("discovery.type", "single-node") | |
.withExposedPorts(9200) | |
.waitingFor( | |
Wait | |
.forHttp("/_cat/health?v&pretty") | |
.forStatusCode(200) | |
); |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
NewerOlder