WASdev / ci.docker.websphere-traditional

Dockerfiles for WebSphere Application Server traditional
Apache License 2.0
171 stars 193 forks source link

Issue with file permissions #54

Closed kevinpauli closed 7 years ago

kevinpauli commented 7 years ago

When attempting to build the dmgr image I am getting

java.io.FileNotFoundException: /opt/IBM/WebSphere/AppServer/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)

Could this be because in websphere-traditional:nd-install (the base image) after the ADD of the tar, the file permissions are all drwxr-xr-x 3 root root and the USER has been set to was?

FYI I was able to workaround it by removing the section that creates the was user, which makes everything execute as root.

davidcurrie commented 7 years ago

Hi Kevin - you shouldn't see this if the tar was created as the was user as the ADD command unpacks as root (regardless of the current user) so you should get the same user permissions as the files in the tar. It will take me a while to verify that this is working as designed but if you could take a look at what permissions are being created in your tar file that would be interesting.

kevinpauli commented 7 years ago

Crap, sorry. Yeah in my prereq project (the one that installs websphere and builds the tar) I forgot I modified it to do the install as root. So the files in the tar are also root's. Nevermind.