Fin dockerisation

This commit is contained in:
Nicolas Héron 2019-03-08 09:44:03 +01:00
commit e203d7539c
21 changed files with 335 additions and 190 deletions

View file

@ -8,6 +8,6 @@ import java.security.PublicKey;
public class MyPublickeyAuthenticator implements PublickeyAuthenticator {
public boolean authenticate(String s, PublicKey publicKey, ServerSession serverSession) {
return false;
return true;
}
}

View file

@ -183,6 +183,7 @@
<ports>
<port>10080:8080</port>
<port>10001:8001</port>
<port>50505:50505</port>
</ports>
</run>
</image>

View file

@ -63,7 +63,6 @@ chown jboss:jboss $JBOSS_HOME/standalone/configuration/application-roles.propert
# Switchback to jboss user
USER root
#RUN yum install -y git
RUN mkdir /home/db
RUN mkdir /home/lucene
RUN mkdir /home/niodir
RUN mkdir /home/kie-example
@ -75,7 +74,7 @@ RUN mkdir /m2_kiewb/repository
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
@ -88,9 +87,8 @@ RUN chown -R jboss:jboss /m2_kiewb/repository
####### EXPOSE INTERNAL JBPM GIT PORT ############
EXPOSE 8001
EXPOSE 8080
EXPOSE 50505
####### RUNNING DROOLS-WB ############
VOLUME /home/db
VOLUME /home/lucene
VOLUME /home/niodir
WORKDIR $JBOSS_HOME/bin/

View file

@ -2,7 +2,8 @@
# 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 -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
#export JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,address=50505,suspend=y,server=y"
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 $?