-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (24 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM registry.access.redhat.com/redhat-sso-7/sso72-openshift:1.3
MAINTAINER Edwin Noh
# Temporarily elevate permissions
USER root
RUN rm -f /opt/eap/standalone/configuration/standalone-openshift.xml
#RUN rm -rf $JBOSS_HOME/standalone/configuration/standalone_xml_history
# Copy JAR & set right permissions
ADD db-user-storage-sample.jar /opt/eap/standalone/deployments/db-user-storage-sample.jar
ADD core-integration-user-sample.jar /opt/eap/standalone/deployments/core-integration-user-sample.jar
ADD com /opt/eap/modules/com
ADD standalone-openshift.xml /opt/eap/standalone/configuration/standalone-openshift.xml
RUN cd /opt/eap/standalone/deployments && \
chown jboss:jboss db-user-storage-sample.jar && \
chmod 664 db-user-storage-sample.jar && \
chown jboss:jboss core-integration-user-sample.jar && \
chmod 664 core-integration-user-sample.jar && \
cd /opt/eap/standalone/configuration && \
chown jboss:jboss standalone-openshift.xml && \
chmod 664 standalone-openshift.xml && \
cd /opt/eap/modules && \
chown -R jboss:jboss com && \
chmod -R 775 com
# Drop permissions
USER jboss