add jboss user creation scripts
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
FROM jboss/wildfly:14.0.1.Final
|
||||
|
||||
# User root user to install software
|
||||
USER root
|
||||
RUN yum -y install expect
|
||||
RUN yum -y install postgresql
|
||||
|
||||
# Switch back to jboss user
|
||||
USER jboss
|
||||
|
||||
ADD createApplicationUser.sh /opt/jboss/wildfly/bin/
|
||||
ADD createManagementUser.sh /opt/jboss/wildfly/bin/
|
||||
|
||||
RUN cd /opt/jboss/wildfly/bin && ./createApplicationUser.sh
|
||||
RUN cd /opt/jboss/wildfly/bin && ./createManagementUser.sh
|
||||
|
||||
ADD MyHealth.ear /opt/jboss/wildfly/standalone/deployments/
|
||||
RUN mkdir /opt/jboss/wildfly/modules/system/layers/base/org/postgresql/
|
||||
RUN mkdir /opt/jboss/wildfly/modules/system/layers/base/org/postgresql/main
|
||||
@@ -7,5 +21,4 @@ ADD postgresql-9.4.1209.jar /opt/jboss/wildfly/modules/system/layers/base/org/po
|
||||
ADD module.xml /opt/jboss/wildfly/modules/system/layers/base/org/postgresql/main
|
||||
ADD standalone.xml /opt/jboss/wildfly/standalone/configuration/standalone.xml
|
||||
|
||||
RUN /opt/jboss/wildfly/bin/add-user.sh USER PASSWORD#70365 --silent
|
||||
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user