add jboss user creation scripts

This commit is contained in:
Gabriel Paradiso
2019-12-18 18:55:53 +01:00
parent bece7c58d2
commit 3adff14da6
3 changed files with 198 additions and 1 deletions

View File

@@ -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"]