Comments (7)
I noticed that without the
--user
, the owner of the PNG files generated by PlantUML is root. I guess this is why you use--user
Exactly. In the Debian container images I build, I usually don't use --user
. Instead, I provide the UID and GID as environment variable and set a custom entrypoint.sh
to create an user with the right UID/GID at container runtime. The very last thing entprypoint.sh
does is to drop the root privilegues using gosu
and switch into the just created user.
https://gitlab.com/manuel_wagesreither/bora-proj/-/blob/master/docker/entrypoint.sh#L9
from docker-plantuml.
I forked your repo and tried to add the solution discussed above. Unfortunately building the docker image fails with gosu
not being available. Indeed, it seems to be available in testing
only.
from docker-plantuml.
If you want to discuss this further, feel free to reopen it. Thanks for your contribution!
from docker-plantuml.
Hi manuel, thanks for the report!
I was able to reproduce in my environment. With --user
option, you've passed the UID and GID to the Docker container, but Alpine Linux on the container side doesn't know these IDs, so the Java runtime looks confused.
The ?
directory contains a file named fcinfo.*.properties
which is dumped by the Java runtime.
$ ls -AR \?
'?':
.java
'?/.java':
fonts
'?/.java/fonts':
1.8.0_282
'?/.java/fonts/1.8.0_282':
fcinfo-1-bdf28f30a749-Linux-5.10.102.1-microsoft-standard-WSL2-en.properties
from docker-plantuml.
I noticed that without the --user
, the owner of the PNG files generated by PlantUML is root. I guess this is why you use --user
. (I noticed just now. It's a shame)
from docker-plantuml.
I am now preparing to address this issue, so this is very helpful. Thank you :)
Unfortunately building the docker image fails with gosu not being available. Indeed, it seems to be available in testing only.
su-exec does the same thing and is available in the main repos. It looks nice.
from docker-plantuml.
I made a pull-req. Any comments are appreciated :)
You can explicitly pass UID and GID using environment variables.
And, I added an implicit approach. If you don't use env vars, PlantUML generates the files to have the same UID and GID as the owner of the working directory given by -w
, --workdir
.
from docker-plantuml.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-plantuml.