Closed marcusholl closed 3 years ago
@marcusholl I face the same issue with a mount. My command line (Docker on Windows):
$ docker run --rm -v c:\tmp\sample-app://data -w '//data' ppiper/mta-archive-builder mtaBuild --version
ERROR: failed to clear directory .mta
Can you confirm?
After some experimenting I found that -u 0
fixes the problem.
-u 0
fixes the issue always since we act as root in this case. Since in our use case with the pipeline the user running Jenkins is - by default - the user running the image that is not an option for us. Even if we would run with -u 0
we would get in trouble since all files/folders created inside the docker image comes with owner root in this case. That makes trouble outside the image.
I will check the details and report more details.
This command:
docker run --rm -v `pwd`:/data -w /data ppiper/mta-archive-builder mtaBuild --version
works fine on my machine locally (mac).
Output:
1.1.19
I'm not aware of any issues in conjunction with our docker setup as suggested for the piper lib.
Nevertheless I will check more details for plain linux.
Please disregard my comment, the Docker on Windows mount problem was unrelated.
Closing as the image is not maintained anymore.
In case we issue a simple
docker run -it --rm ppiper/mta-archive-builder mtaBuild –version
with out mounting a volume so that the workdir is provided from outside alongside with the proper permissions the build command (... a simple version command) fails with
ERROR: failed to clear directory .mta
I guess it should be possible to use the mta-archive-builder also with nothing mounted into it.