Hi all,
unsetting the parent image's entrypoint is rather a workaround than a solution. The issue is that the Maven image tries to copy some configuration into the Maven configuration directory (seems to be required for users still relying on Maven during container runtime, we're only using Maven during container build time).
As a solution, I'd rather propose moving the Maven configuration directory into a (volumized) folder writeable to the basex user.
I opened just another pull request, which also contains links to the relevant issues in the Maven parent Docker image: https://github.com/BaseXdb/basex/pull/1347
The patch of course only applies to newly tagged BaseX tags and the master branch -- the old images will remain broken. For those, both the proposed `--entrypoint=basexhttp` or `--env=MAVEN_CONFIG=/srv/.m2` will provide a workaround. For derived Docker images, I'd add those three lines to the derived Dockerfile:
VOLUME ["/srv/.m2"] ENV MAVEN_CONFIG=/srv/.m2 RUN mkdir /srv/.m2 && chown basex /srv/.m2
I'm a little bit disappointed that such changes breaking compatibility are introduced in the Maven image... The only solution would be to retag all the "dockerized" BaseX releases after cherry-picking the fix, I don't think that this is worth the effort. Most people will rely on the newest releases or git HEAD anyway.
Regards, Jens
On 25.08.2016 18:22, Michael Seiferle wrote:
Hi BaseX-Talk,
in case any of you is using our docker images, in recent builds there seems to be a bug related to the ENTRYPOINT and the PARENT mvn Image we are using.
If you encounter the following error message (in fact you should if you docker pulled recently ;-)):
⇒ docker run basex/basexhttp touch: cannot touch ‘/root/.m2/copy_reference_file.log’: Permission denied Can not write to /root/.m2/copy_reference_file.log. Wrong volume permissions?
You might want to override the ENTRYPOINT yourself:
docker run --entrypoint=basexhttp basex/basexhttp
I already proposed a fix but I’d like someone with docker-expertise have a look, maybe s/o might want to add her or his 5cts ;-) https://github.com/BaseXdb/basex/pull/1346
Best Michael
-- Michael Seiferle, BaseX GmbH, http://www.basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Fon: +49 7531 916 82 77