You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2019/11/25 12:24:18 UTC
[tomcat] branch master updated: may sure the arbitrarily assigned
user ID of openshift can deploy a war file.
This is an automated email from the ASF dual-hosted git repository.
jfclere pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new a42b94a may sure the arbitrarily assigned user ID of openshift can deploy a war file.
a42b94a is described below
commit a42b94a042414a98beb600c22a9af08d938baf52
Author: Jean-Frederic Clere <jf...@gmail.com>
AuthorDate: Mon Nov 25 13:22:58 2019 +0100
may sure the arbitrarily assigned user ID of openshift can deploy a war file.
---
res/tomcat-maven/Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/res/tomcat-maven/Dockerfile b/res/tomcat-maven/Dockerfile
index 5570391..512f232 100644
--- a/res/tomcat-maven/Dockerfile
+++ b/res/tomcat-maven/Dockerfile
@@ -23,6 +23,7 @@ RUN mkdir -m 777 -p /deployments
ADD target/tomcat-maven-1.0.jar /deployments/app.jar
ADD conf /deployments/conf
ADD webapps /deployments/webapps
+RUN chmod 777 /deployments/webapps
WORKDIR /deployments
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [tomcat] branch master updated: may sure the arbitrarily assigned
user ID of openshift can deploy a war file.
Posted by Rémy Maucherat <re...@apache.org>.
On Mon, Nov 25, 2019 at 2:46 PM Konstantin Kolinko <kn...@gmail.com>
wrote:
> пн, 25 нояб. 2019 г. в 15:24, <jf...@apache.org>:
> >
> > This is an automated email from the ASF dual-hosted git repository.
> >
> > jfclere pushed a commit to branch master
> > in repository https://gitbox.apache.org/repos/asf/tomcat.git
> >
> >
> > The following commit(s) were added to refs/heads/master by this push:
> > new a42b94a may sure the arbitrarily assigned user ID of openshift
> can deploy a war file.
> > a42b94a is described below
> >
> > --- a/res/tomcat-maven/Dockerfile
> > +++ b/res/tomcat-maven/Dockerfile
> > @@ -23,6 +23,7 @@ RUN mkdir -m 777 -p /deployments
> > ADD target/tomcat-maven-1.0.jar /deployments/app.jar
> > ADD conf /deployments/conf
> > ADD webapps /deployments/webapps
> > +RUN chmod 777 /deployments/webapps
>
> World-writable? Any other way to solve the issue?
>
Why does it matter ? It has to be writable by Tomcat and it is the only
process that will be running, so it's already world writable.
Note: it worked fine in Docker without it, so these container platforms
differences are new to me.
Rémy
>
> The following document [1] (found by Googling):
> tells to change directories ownership to group 0 (root) and make the
> files writable by that group.
> --
> RUN chgrp -R 0 /some/directory && \
> chmod -R g=u /some/directory
> ---
> (Set owning group id to be 0, recursively (-R).
> Set group permissions recursively (-R) to be a copy (=) of the user's
> permissions.)
>
> [1]
> https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#use-uid
> "OpenShift > 3.11 > Creating Images > Guidelines"
> section "Support Arbitrary User IDs"
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
Re: [tomcat] branch master updated: may sure the arbitrarily assigned
user ID of openshift can deploy a war file.
Posted by Konstantin Kolinko <kn...@gmail.com>.
пн, 25 нояб. 2019 г. в 15:24, <jf...@apache.org>:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> jfclere pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/tomcat.git
>
>
> The following commit(s) were added to refs/heads/master by this push:
> new a42b94a may sure the arbitrarily assigned user ID of openshift can deploy a war file.
> a42b94a is described below
>
> --- a/res/tomcat-maven/Dockerfile
> +++ b/res/tomcat-maven/Dockerfile
> @@ -23,6 +23,7 @@ RUN mkdir -m 777 -p /deployments
> ADD target/tomcat-maven-1.0.jar /deployments/app.jar
> ADD conf /deployments/conf
> ADD webapps /deployments/webapps
> +RUN chmod 777 /deployments/webapps
World-writable? Any other way to solve the issue?
The following document [1] (found by Googling):
tells to change directories ownership to group 0 (root) and make the
files writable by that group.
--
RUN chgrp -R 0 /some/directory && \
chmod -R g=u /some/directory
---
(Set owning group id to be 0, recursively (-R).
Set group permissions recursively (-R) to be a copy (=) of the user's
permissions.)
[1] https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#use-uid
"OpenShift > 3.11 > Creating Images > Guidelines"
section "Support Arbitrary User IDs"
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org