Ich sehe mir Dockerization von Spring Boot Apps an.Dockerize Spring Boot App
Leider kann ich kein funktionierendes Projekt bekommen. Sogar der offizielle Tutorial Project von Pivotal wird nicht gestartet.
Der Befehl .\mvnw install dockerfile:build
wirft einen Fehler:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.886 s
[INFO] Finished at: 2017-08-03T11:20:52+02:00
[INFO] Final Memory: 34M/536M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.3.4:build (default-cli) on project gs-spring-boot-docker: Could not build image: com.spotify.docker.client.shaded.com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.spotify.docker.client.messages.RegistryAuth: no String-argument constructor/factory method to deserialize from String value ('wincred')
[ERROR] at [Source: N/A; line: -1, column: -1] (through reference chain: java.util.LinkedHashMap["credsStore"])
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Ist für dieses Problem eine Lösung jemand? Oder kann mich in die richtige Richtung weisen?
Können Sie Ihre Anwendung mit 'mvn-Paket' erstellen? Wird es ausgeführt, wenn Sie es lokal erstellt haben? Wie ist deine Dockerfile? –
Ich kann es erstellen und lokal ausführen (als Spring Boot App ausführen). Die Dockerfile ist einfach die [original] (https://github.com/spring-guides/gs-spring-boot-docker/blob/master/complete/Dockerfile) aus dem Pivot-Tutorial: – Pastafari
dieses Beispiel funktioniert für mich; also mit keinen weiteren Infos über deine Pom oder Dockerfile kann ich nicht helfen –