Closed Gulivert closed 6 years ago
+1
+1
Same or similar problem here. I have specified a custom dockerConfigFile (Dockerfile.debug) and I'm getting the error that @Gulivert reported. The plugin works fine if I remove the dockerConfigFile configuration and let it use the default (Dockerfile).
Tried
FROM openjdk:8-jdk-alpine VOLUME /tmp ARG JAR_FILE ADD ${JAR_FILE} app.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
I used <dockerDirectory>docker</dockerDirectory>
and put Dockerfile
inside this docker
folder on root path of the my project.
Hi guys, i am facing the same problem here
I just put the Dockerfile inside the root folder and worked
@Gulivert What's your docker-maven-plugin configuration in your pom.xml? Is this still an issue?
No sorry. We adopt another way to solve our problem with docker, but maybe otherone of the list could help you.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
Hi! First of all thanks for your work. So... Im trying to create a Spring Cloud proyecto to up into a docker container. After resolve an error when wasn't able to find the docker file, (\<dockerConfigFile> ./DockerFile \</dockerConfigFile> do the thing), the console give me an error about parsing the DockerFile... weird thing couse is the same file from the "Complete" project
How to reproduce
Add the plugin to the pom, put the same file of the project "Complete" in my root, and give me an error
What do you expect
Doesn't give me this error
What happened instead
Give me the error: com.spotify.docker.client.shaded.com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'FROM': was expecting ('true', 'false' or 'null')
DockerFile
FROM openjdk:8-jdk-alpine VOLUME /tmp ARG JAR_FILE ADD ${JAR_FILE} app.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
Software:
Full backtrace
Thanks!