/app not readable when running on Openshift
See original GitHub issue/app folder permissions is set to 0700 on docker version 1.13.1 on Redhat Enterprice 7.5:
/ # ls -al / | grep app
drw------- 1 root root 4096 Jul 10 07:49 app
Expected behavior: /app folder permissions should be 0755, as it is with docker version 18.03.1-ce
/ # ls -al / | grep app
drwxr-xr-x 1 root root 4096 Jul 10 07:49 app
Steps to reproduce: Build using configuration pasted below
Environment: Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-63.git94f4240.el7.x86_64 Go version: go1.9.2 Git commit: 94f4240/1.13.1 Built: Mon Apr 30 15:45:42 2018 OS/Arch: linux/amd64 Experimental: false Static hostname: node Icon name: computer-server Chassis: server Machine ID: <machine_id> Boot ID: <boot_it> Operating System: OpenShift Enterprise CPE OS Name: cpe:/o:redhat:enterprise_linux:7.5:GA:server Kernel: Linux 3.10.0-862.3.3.el7.x86_64 Architecture: x86-64
jib-maven-plugin
Configuration:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>0.9.2</version>
<configuration>
<allowInsecureRegistries>true</allowInsecureRegistries>
<from>
<image>my.local/registry/openjdk:8-alpine</image>
</from>
<to>
<image>my.local/registry/${project.artifactId}:${project.version}</image>
</to>
<container>
<ports>
<port>8080</port>
<port>8081</port>
</ports>
<jvmFlags>-Djava.security.egd=file:/dev/./urandom</jvmFlags>
</container>
</configuration>
</plugin>
Log output: Error: Could not find or load main class my.package.Application
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (10 by maintainers)
Top GitHub Comments
./mvnw -DskipTests install
if tests are not passing.@ssoerensen we’ll have to look into this, but it seems like you are familiar with Docker and at least you can work around this, e.g., by manipulating the image locally?
BTW, if you want to see how Jib would create
Dockerfile
, you can domvn jib:exportDockerContext
and go totarget/jib-docker-context
. (You can actually build an image yourself in that directory.) TheDockefile
will look likeI wonder if
RUN chmod -R go+r /app
would work on 1.13.1.