Skip to content

Instantly share code, notes, and snippets.

@martinda
Created October 18, 2017 11:53
Show Gist options
  • Save martinda/ddf6f626fce9408c174ccc10a6220143 to your computer and use it in GitHub Desktop.
Save martinda/ddf6f626fce9408c174ccc10a6220143 to your computer and use it in GitHub Desktop.
./mvnw -pl modules/jdbc-test test
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TestContainers :: JDBC :: Tests 0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jdbc-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mdanjou/git/testcontainers-java/modules/jdbc-test/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jdbc-test ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jdbc-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jdbc-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ jdbc-test ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.testcontainers.junit.CustomizableMysqlTest
07:45:25.041 DEBUG org.testcontainers.utility.TestcontainersConfiguration - Testcontainers configuration overrides will be loaded from file:/home/mdanjou/.testcontainers.properties
07:45:25.060 DEBUG org.testcontainers.utility.TestcontainersConfiguration - Testcontainers configuration overrides loaded from TestcontainersConfiguration(properties={docker.client.strategy=org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy})
07:45:25.608 DEBUG org.testcontainers.dockerclient.DockerClientProviderStrategy - Pinging docker daemon...
07:45:25.800 INFO org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy - Found docker client settings from environment
07:45:25.819 INFO org.testcontainers.dockerclient.DockerClientProviderStrategy - Found Docker environment with Environment variables, system properties and defaults. Resolved:
dockerHost=unix:///var/run/docker.sock
apiVersion='{UNKNOWN_VERSION}'
registryUrl='https://index.docker.io/v1/'
registryUsername='mdanjou'
registryPassword='null'
registryEmail='null'
dockerConfig='DefaultDockerClientConfig[dockerHost=unix:///var/run/docker.sock,registryUsername=mdanjou,registryPassword=<null>,registryEmail=<null>,registryUrl=https://index.docker.io/v1/,dockerConfig=/home/mdanjou/.docker,sslConfig=<null>,apiVersion={UNKNOWN_VERSION}]'
07:45:25.845 INFO org.testcontainers.DockerClientFactory - Docker host IP address is localhost
07:45:26.093 INFO org.testcontainers.DockerClientFactory - Connected to docker:
Server Version: 1.12.6
API Version: 1.24
Operating System: Red Hat Enterprise Linux Server 7.3 (Maipo)
Total Memory: 3791 MB
?? Checking the system...
? Docker version should be at least 1.6.0
07:45:27.108 DEBUG org.testcontainers.utility.MountableFile - Copying classpath resource(s) from jar:file:/home/mdanjou/.m2/repository/org/testcontainers/testcontainers/0-SNAPSHOT/testcontainers-0-SNAPSHOT.jar!/org/testcontainers/DockerClientFactory.class to .testcontainers-tmp-WkymK to permit Docker to bind
07:45:27.109 DEBUG org.testcontainers.utility.MountableFile - Copying resource org/testcontainers/DockerClientFactory.class from JAR file /home/mdanjou/.m2/repository/org/testcontainers/testcontainers/0-SNAPSHOT/testcontainers-0-SNAPSHOT.jar
? Docker environment should have more than 2GB free disk space
? File should be mountable
? A port exposed by a docker container should be accessible
07:45:29.027 INFO docker[mysql:5.5] - Pulling docker image: mysql:5.5. Please be patient; this may take some time but only needs to be done once.
07:45:34.235 ERROR docker[mysql:5.5] - Retry limit reached while trying to pull image: mysql:5.5. Please check output of `docker pull mysql:5.5`
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.944 s <<< FAILURE! - in org.testcontainers.junit.CustomizableMysqlTest
[ERROR] testSimple(org.testcontainers.junit.CustomizableMysqlTest) Time elapsed: 0.001 s <<< ERROR!
org.testcontainers.containers.ContainerFetchException: Can't get Docker image name from org.testcontainers.images.RemoteDockerImage@141e5bef
at org.testcontainers.junit.CustomizableMysqlTest.<init>(CustomizableMysqlTest.java:21)
Caused by: org.testcontainers.containers.ContainerFetchException: Retry limit reached while trying to pull image: mysql:5.5
at org.testcontainers.junit.CustomizableMysqlTest.<init>(CustomizableMysqlTest.java:21)
[INFO] Running org.testcontainers.junit.SimplePostgreSQLTest
07:45:34.275 INFO docker[postgres:latest] - Pulling docker image: postgres:latest. Please be patient; this may take some time but only needs to be done once.
07:45:38.047 ERROR docker[postgres:latest] - Retry limit reached while trying to pull image: postgres:latest. Please check output of `docker pull postgres:latest`
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.716 s <<< FAILURE! - in org.testcontainers.junit.SimplePostgreSQLTest
[ERROR] testSimple(org.testcontainers.junit.SimplePostgreSQLTest) Time elapsed: 0 s <<< ERROR!
org.testcontainers.containers.ContainerFetchException: Can't get Docker image name from org.testcontainers.images.RemoteDockerImage@5bf0fe62
at org.testcontainers.junit.SimplePostgreSQLTest.<init>(SimplePostgreSQLTest.java:20)
Caused by: org.testcontainers.containers.ContainerFetchException: Retry limit reached while trying to pull image: postgres:latest
at org.testcontainers.junit.SimplePostgreSQLTest.<init>(SimplePostgreSQLTest.java:20)
[INFO] Running org.testcontainers.junit.CustomizablePostgreSQLTest
07:45:38.062 INFO docker[postgres:latest] - Pulling docker image: postgres:latest. Please be patient; this may take some time but only needs to be done once.
07:45:41.552 ERROR docker[postgres:latest] - Retry limit reached while trying to pull image: postgres:latest. Please check output of `docker pull postgres:latest`
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.486 s <<< FAILURE! - in org.testcontainers.junit.CustomizablePostgreSQLTest
[ERROR] testSimple(org.testcontainers.junit.CustomizablePostgreSQLTest) Time elapsed: 0 s <<< ERROR!
org.testcontainers.containers.ContainerFetchException: Can't get Docker image name from org.testcontainers.images.RemoteDockerImage@6581dc0a
at org.testcontainers.junit.CustomizablePostgreSQLTest.<init>(CustomizablePostgreSQLTest.java:23)
Caused by: org.testcontainers.containers.ContainerFetchException: Retry limit reached while trying to pull image: postgres:latest
at org.testcontainers.junit.CustomizablePostgreSQLTest.<init>(CustomizablePostgreSQLTest.java:23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment