# HG changeset patch # User Tom Gottfried # Date 1447425636 -3600 # Node ID 625c8ae7fc30f8ac048019a62c1cb5b670344553 # Parent ec231b0c343dbbf855f7e4e8ac0afd4a2da46de0 Add custom standalone.conf with timezone set to UTC. REST-interfaces will deliver wrong timestamps if timezone is not UTC. diff -r ec231b0c343d -r 625c8ae7fc30 Dockerfile --- a/Dockerfile Fri Nov 13 13:42:25 2015 +0100 +++ b/Dockerfile Fri Nov 13 15:40:36 2015 +0100 @@ -64,6 +64,7 @@ $JBOSS_HOME/modules/org/postgres/main/module.xml RUN ln -fs $PWD/wildfly/hibernate-module.xml \ $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml +RUN ln -s $PWD/wildfly/standalone.conf $JBOSS_HOME/bin/ RUN wildfly/execute.sh diff -r ec231b0c343d -r 625c8ae7fc30 wildfly/standalone.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wildfly/standalone.conf Fri Nov 13 15:40:36 2015 +0100 @@ -0,0 +1,73 @@ +## -*- shell-script -*- ###################################################### +## ## +## JBoss Bootstrap Script Configuration ## +## ## +############################################################################## + +# +# This file is optional; it may be removed if not needed. +# + +# +# Specify the maximum file descriptor limit, use "max" or "maximum" to use +# the default, as queried by the system. +# +# Defaults to "maximum" +# +#MAX_FD="maximum" + +# +# Specify the profiler configuration file to load. +# +# Default is to not load profiler configuration file. +# +#PROFILER="" + +# +# Specify the location of the Java home directory. If set then $JAVA will +# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java". +# +#JAVA_HOME="/opt/java/jdk" + +# +# Specify the exact Java VM executable to use. +# +#JAVA="" + +if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then + JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman" +fi + +# Uncomment the following line to prevent manipulation of JVM options +# by shell scripts. +# +#PRESERVE_JAVA_OPTS=true + +# +# Specify options to pass to the Java VM. +# +if [ "x$JAVA_OPTS" = "x" ]; then + JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true" + JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true" +else + echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS" +fi + +# REST-interfaces will deliver wrong timestamps if timezone is not UTC +JAVA_OPTS="$JAVA_OPTS -Duser.timezone=UTC" + +# Sample JPDA settings for remote socket debugging +#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n" + +# Sample JPDA settings for shared memory debugging +#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss" + +# Uncomment to not use JBoss Modules lockless mode +#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false" + +# Uncomment to gather JBoss Modules metrics +#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true" + +# Uncomment this in order to be able to run WildFly on FreeBSD +# when you get "epoll_create function not implemented" message in dmesg output +#JAVA_OPTS="$JAVA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"