Closed MichaelRoeder closed 6 years ago
docker pull jetty:9.3.20-jre8
docker tag jetty:9.3.20-jre8 jetty:9.3-jre8
solves the problem by using an older version.
Lowered the priority of the bug since a workaround is known.
@MichaelRoeder why are you using $JETTY_HOME? according to docker image docs, all apps should be added to /var/lib/jetty/webapps
- have you tried that? might be that all but that folder is restricted in new versions
I haven't created that image :smile: @romankorf @Ennosigaeon So it sounds like our usage of the base image is simply wrong and can be fixed easily.
Thanks @yamalight
Looks like it works if we just use $JETTY_BASE
instead: https://github.com/hobbit-project/platform/compare/develop...feature/jetty9.x
The solution of @denkv is working. Merged it into develop.
Could you please describe the solution again?
It works. Thank you!
Problem
When building the GUI Docker container, the latest Docker image
jetty:9.3-jre8
causes the build to fail withReproduction
The problem can be easily reproduced. Start a jetty container using
(
docker run -d jetty:9.3-jre8
might also be possible)Start a bash inside the newly created container and attach to it (
a7f
has to be replaced with the container hash)Navigate to the directory to which the data should have been downloaded and try to download it manually
The user
jetty
does not have the rights to create a file in the/usr/local/jetty
directory. Checking the ownership of the directory supports this observation.It can be seen that the root user owns the directory and only the root user is allowed to write to it.