Mount the Docker socket to allow Testcontainers to spawn (new) containers inside the build Docker container.

This commit is contained in:
John Blum
2021-04-01 14:56:48 -07:00
parent 16dc3331a8
commit d553406262

2
Jenkinsfile vendored
View File

@@ -28,7 +28,7 @@ pipeline {
steps {
script {
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
docker.image('adoptopenjdk/openjdk8:latest').inside('-v $HOME:/tmp/jenkins-home') {
docker.image('adoptopenjdk/openjdk8:latest').inside('-v $HOME:/tmp/jenkins-home -v /var/run/docker.sock:/var/run/docker.sock') {
try {
sh 'rm -Rf ./.m2'