Start Dockerized
Dynamic configuration started
This commit is contained in:
parent
30ccfa9604
commit
945c57ddfd
44 changed files with 1544 additions and 321 deletions
|
|
@ -177,11 +177,12 @@
|
|||
|
||||
<run>
|
||||
<extraHosts>
|
||||
<host>mongodb:192.168.1.102</host>
|
||||
<host>declasin:192.168.1.184</host>
|
||||
<host>mongodb:172.17.0.1</host>
|
||||
<host>kie-wb:172.17.0.1</host>
|
||||
</extraHosts>
|
||||
<ports>
|
||||
<port>8080:8080</port>
|
||||
<port>10080:8080</port>
|
||||
<port>10001:8001</port>
|
||||
</ports>
|
||||
</run>
|
||||
</image>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ ENV KIE_SERVER_PROFILE standalone-full
|
|||
ENV CHTIJBUG_VERSION 2.0.10
|
||||
# Do NOT use demo neither examples by default in this image (no internet connection required).
|
||||
ENV KIE_DEMO false
|
||||
ENV JAVA_OPTS -Xms256m -Xmx2512m
|
||||
ENV JAVA_OPTS -Xms256m -Xmx4512m
|
||||
|
||||
|
||||
|
||||
|
|
@ -33,10 +33,6 @@ ADD maven/kie-wb.war /opt/jboss/wildfly/standalone/deployments/$KIE_CONTEXT_PAT
|
|||
#touch $JBOSS_HOME/standalone/deployments/$KIE_CONTEXT_PATH.war.dodeploy && \
|
||||
# rm -rf $HOME/$KIE_CONTEXT_PATH.war
|
||||
|
||||
####### MVN REPO ############
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1263738
|
||||
RUN mkdir -p $HOME/.m2/repository/org/guvnor/guvnor-asset-mgmt-project/$KIE_VERSION && \
|
||||
curl -o $HOME/.m2/repository/org/guvnor/guvnor-asset-mgmt-project/$KIE_VERSION/guvnor-asset-mgmt-project-$KIE_VERSION.jar $KIE_REPOSITORY/org/guvnor/guvnor-asset-mgmt-project/$KIE_VERSION/guvnor-asset-mgmt-project-$KIE_VERSION.jar
|
||||
|
||||
####### SCRIPTS ############
|
||||
USER root
|
||||
|
|
@ -66,20 +62,32 @@ chown jboss:jboss $JBOSS_HOME/standalone/configuration/application-roles.propert
|
|||
|
||||
# Switchback to jboss user
|
||||
USER root
|
||||
RUN yum install -y git
|
||||
#RUN yum install -y git
|
||||
RUN mkdir /home/db
|
||||
RUN mkdir /home/lucene
|
||||
RUN mkdir /home/niodir
|
||||
RUN mkdir /home/kie-example
|
||||
RUN mkdir /m2_kiewb
|
||||
ADD settings.xml /m2_kiewb/settings.xml
|
||||
RUN mkdir /m2_kiewb/repository
|
||||
####### MVN REPO ############
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1263738
|
||||
RUN mkdir -p /m2_kiewb/repository/org/guvnor/guvnor-asset-mgmt-project/$KIE_VERSION && \
|
||||
curl -o /m2_kiewb/repository/org/guvnor/guvnor-asset-mgmt-project/$KIE_VERSION/guvnor-asset-mgmt-project-$KIE_VERSION.jar $KIE_REPOSITORY/org/guvnor/guvnor-asset-mgmt-project/$KIE_VERSION/guvnor-asset-mgmt-project-$KIE_VERSION.jar
|
||||
|
||||
RUN chown jboss:jboss /home/db
|
||||
RUN chown jboss:jboss /home/lucene
|
||||
RUN chown jboss:jboss /home/niodir
|
||||
RUN chown jboss:jboss /home/kie-example
|
||||
RUN chown jboss:jboss /m2_kiewb
|
||||
RUN chown -R jboss:jboss /m2_kiewb/repository
|
||||
|
||||
#RUN cd /home/kie-example && git clone https://github.com/chtiJBUG/onboarding-nautic-project.git
|
||||
#RUN cd /home/kie-example && git clone https://github.com/chtiJBUG/onboarding-carinsurance-project.git
|
||||
#RUN cd /home/kie-example && git clone https://github.com/chtiJBUG/onboarding-loyalty-project.git
|
||||
####### EXPOSE INTERNAL JBPM GIT PORT ############
|
||||
EXPOSE 8001
|
||||
EXPOSE 8080
|
||||
|
||||
####### RUNNING DROOLS-WB ############
|
||||
VOLUME /home/db
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Start Wildfly with the given arguments.
|
||||
echo "Running Drools Workbench on JBoss Wildfly..."
|
||||
exec ./standalone.sh -b $JBOSS_BIND_ADDRESS -c $KIE_SERVER_PROFILE.xml -Dorg.kie.demo=$KIE_DEMO -Dorg.kie.example=$KIE_DEMO -Djava.net.preferIPv4Stack=true -Dorg.kie.example.repositories=/home/kie-example -Dorg.kie.example=true -Dorg.uberfire.metadata.index.dir=/home/lucene -Dorg.uberfire.nio.git.daemon.host=0.0.0.0 -Dorg.guvnor.m2repo.dir=$JBOSS_HOME/.m2/repository -DM2_HOME==$JBOSS_HOME/.m2/repository -Dorg.uberfire.nio.git.dir=/home/niodir -Derrai.bus.enable_sse_support=false
|
||||
exec ./standalone.sh -b $JBOSS_BIND_ADDRESS -c $KIE_SERVER_PROFILE.xml -Djava.net.preferIPv4Stack=true -Dorg.uberfire.metadata.index.dir=/home/lucene -Dorg.uberfire.nio.git.daemon.host=0.0.0.0 -Dorg.guvnor.m2repo.dir=/m2_kiewb/repository -DM2_HOME=/m2_kiewb/repository -Dorg.uberfire.nio.git.dir=/home/niodir -Dorg.appformer.m2repo.url=http://localhost:8080/kie-wb/maven2 -Dkie.maven.settings.custom=/m2_kiewb/settings.xml -Dfile.encoding=UTF-8 -Duser.language=fr -Duser.country=FR
|
||||
exit $?
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
<localRepository>/m2_kiewb/repository</localRepository>
|
||||
|
||||
<servers>
|
||||
|
||||
<server>
|
||||
<id>pymma-release</id>
|
||||
<username>pymma-dev</username>
|
||||
<password>VlcBe38jE9eNIu5H</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>pymma-snapshot</id>
|
||||
<username>pymma-dev</username>
|
||||
<password>VlcBe38jE9eNIu5H</password>
|
||||
</server>
|
||||
|
||||
|
||||
|
||||
</servers>
|
||||
|
||||
|
||||
<mirrors>
|
||||
</mirrors>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>pymma-declasin</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>pymma-release</id>
|
||||
<name>pymma repo release</name>
|
||||
<url>https://nexus.pymma-software.com/nexus/content/repositories/pymma-release/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>pymma-snapshot</id>
|
||||
<name>pymma repo release</name>
|
||||
<url>https://nexus.pymma-software.com/nexus/content/repositories/pymma-snapshot/</url>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</snapshots>
|
||||
</repository>
|
||||
|
||||
</repositories>
|
||||
|
||||
|
||||
</profile>
|
||||
|
||||
|
||||
|
||||
</profiles>
|
||||
<activeProfiles>
|
||||
|
||||
|
||||
<activeProfile>pymma-declasin</activeProfile>
|
||||
</activeProfiles>
|
||||
|
||||
</settings>
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue