Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change permissions in Dockerfile #251

Open
wajda opened this issue Sep 11, 2023 Discussed in #250 · 0 comments · Fixed by #252
Open

Change permissions in Dockerfile #251

wajda opened this issue Sep 11, 2023 Discussed in #250 · 0 comments · Fixed by #252
Assignees
Milestone

Comments

@wajda
Copy link
Contributor

wajda commented Sep 11, 2023

Discussed in #250

Originally posted by lucasdefrancesca August 14, 2023
Hi, I'm trying to run the docker image (absaoss-spline-web-ui:0.7.4) on kubernets (OCP), but I wouldn't be able to, apparently because of an image permissions issue. Do you think that if it could be replicated as the rest-gateway Dockerfile has, it could work?

https://github.com/AbsaOSS/spline/blob/release/0.7.8/rest-gateway/Dockerfile

USER 1001
COPY --chown=1001 target/*.war /usr/local/tomcat/webapps/ROOT.war

Error from kubernets POD:

java.io.IOException: Unable to create the directory [/usr/local/tomcat/webapps/ROOT]
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:116)
at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:820)
at org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:959)

Source:
https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform

@cerveada cerveada added this to Spline Sep 11, 2023
@github-project-automation github-project-automation bot moved this to New in Spline Sep 11, 2023
@wajda wajda moved this from New to In Progress in Spline Sep 11, 2023
@wajda wajda self-assigned this Sep 11, 2023
@wajda wajda added this to the 0.7.6 milestone Sep 11, 2023
@wajda wajda linked a pull request Sep 11, 2023 that will close this issue
@wajda wajda moved this from In Progress to Review / PR Created in Spline Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review / PR Created
Development

Successfully merging a pull request may close this issue.

1 participant