Closed sshipway closed 8 years ago
That is very strange. Yeah, I would have suspected running out of /var space, but you checked that already.
The easiest solution would be to commit an empty certs/
and then adjust .gitignore
to ignore the contents of that.
I don't suppose you could push a working container into your dockerhub repo? I want to run some tests on it here but seem to be unable to build.
Ah yes, I'll push one with an empty certs and that should be what you'll need.
Until I can do that, you give a plain old maven build a try. In that directory use the mvnw commands listed in the README.
Strangely, it will build running ./mvnw package
from the commandline; only when done via the Dockerfile does it fail like this. Docker build seems to be trying to copy things from /root/.m2 into the new intermediate image after running the build command, and failing. This is docker 1.7.1 which might be an issue? I'm wondering if the docker daemon may be running out of resource somehow when building?
Anyway, I've managed to make it build by changing like this:
RUN cd /build && ./mvnw -B package && cp /build/target/mccy-swarm-*.jar /usr/local/bin/mccy-swarm.jar && rm -rf /build $HOME/.m2
IE, put the rm
in the same RUN
and the build, reducing the changes at that step. Seems to result in a working build... now have to test.
@sshipway , give this image a try. You could do the usual --volumes-from
to manage the /certs
from a data container if you need cert authentication.
Can you go ahead and push that Dockerfile change that worked for you? I usually like combining steps like that into one image layer anyway.
Fixed by pull req #32
Trying to build the container via the Dockerfile. 6G available in /var and 12G in the build dir, no space runs out during the build. However the build fails on the ApplyLayer right at the end...
... (very info, so download, much time ) ...
or, next attempt gives:
Is there an obvious reason why this would be?
Also, it would make sense for the build to assume an empty certs/ if one does not exist rather than crashing out, but that's a minor thing.