spring boot - Cannot build Docker image using spotify plugin -
i have been using spotify plug-in build docker images, stops working reason, , spews out error complaining exec failure on spotify plug-in
[info] [info] --- maven-jar-plugin:2.5:jar (default-jar) @ simplewebapp --- [info] building jar: /home/test/opd_workspace/my_simple_webapp/target/simplewebapp-0.0.1-snapshot.jar [info] [info] --- spring-boot-maven-plugin:1.3.5.release:repackage (default) @ simplewebapp --- [info] [info] --- docker-maven-plugin:0.2.3:build (default-cli) @ simplewebapp --- slf4j: failed load class "org.slf4j.impl.staticloggerbinder". slf4j: defaulting no-operation (nop) logger implementation slf4j: see http://www.slf4j.org/codes.html#staticloggerbinder further details. [info] copying /home/test/opd_workspace/my_simple_webapp/target/simplewebapp-0.0.1-snapshot.jar -> /home/test/opd_workspace/my_simple_webapp/target/docker/simplewebapp-0.0.1-snapshot.jar [info] copying src/main/docker/dockerfile -> /home/test/opd_workspace/my_simple_webapp/target/docker/dockerfile [info] building image imgprefix/simplewebapp [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 5.282s [info] finished at: wed jun 01 19:42:14 edt 2016 [info] final memory: 27m/340m [info] ------------------------------------------------------------------------ [error] failed execute goal com.spotify:docker-maven-plugin:0.2.3:build (default-cli) on project simplewebapp: exception caught: request error: post unix://localhost:80/v1.12/build?t=imgprefix/simplewebapp: 500: http 500 internal server error -> [help 1]
my pom.xml plug-in simple, , maven project build , package ok
<plugins> <plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> </plugin> <plugin> <groupid>com.spotify</groupid> <artifactid>docker-maven-plugin</artifactid> <version>0.2.3</version> <configuration> <imagename>${docker.image.prefix}/${project.artifactid}</imagename> <dockerdirectory>src/main/docker</dockerdirectory> <resources> <resource> <targetpath>/</targetpath> <directory>${project.build.directory}</directory> <include>${project.build.finalname}.jar</include> </resource> </resources> </configuration> </plugin> </plugins>
following line:
[error] failed execute goal com.spotify:docker-maven-plugin:0.2.3:build (default-cli) on project simplewebapp: exception caught: request error: post unix://localhost:80/v1.12/build?t=imgprefix/simplewebapp: 500: http 500 internal server error -> [help 1]
it seems using unix
operating system , docker
answers error 500.
i'm using macos
, works me same configuration yours before need evaluation docker
environment variables in terminal with:
eval $(docker-machine env default)