Skip to content

Commit

Permalink
Merge pull request #170 from rhuss/master
Browse files Browse the repository at this point in the history
fix: Set working directory back to /home/jboss
  • Loading branch information
rhuss authored Aug 10, 2018
2 parents 58b5c6f + 5aa0dfc commit 7d1d6d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion java/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fish-pepper:
params:
- base
name: "fabric8/s2i-java"
build: "2.3.0"
build: "2.3.1"

config:
base:
Expand Down
3 changes: 3 additions & 0 deletions java/images/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ RUN mkdir -p /deployments/data \
&& chown -R jboss:root /opt/jboss \
&& chmod 664 /etc/passwd

# S2I scripts rely on /opt/jboss as working directory
WORKDIR /opt/jboss

# S2I requires a numeric, non-0 UID. This is the UID for the jboss user in the base image

USER 1000
Expand Down
3 changes: 3 additions & 0 deletions java/images/rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ RUN mkdir -p /deployments/data \
&& chown -R jboss:root /home/jboss \
&& chmod 664 /etc/passwd

# S2I scripts rely on /home/jboss as working directory
WORKDIR /home/jboss

# S2I requires a numeric, non-0 UID. This is the UID for the jboss user in the base image

USER 185
Expand Down
3 changes: 3 additions & 0 deletions java/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ RUN mkdir -p /deployments/data \
&& chown -R jboss:root {{= fp.config.base.home }} \
&& chmod 664 /etc/passwd

# S2I scripts rely on {{= fp.config.base.home }} as working directory
WORKDIR {{= fp.config.base.home }}

# S2I requires a numeric, non-0 UID. This is the UID for the jboss user in the base image
{{? fp.param.base === "rhel"}}
USER 185
Expand Down

0 comments on commit 7d1d6d2

Please sign in to comment.