tree: 111ec70905bd05134526d3819f1874e7f1d455b8 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
server/container/guice/memory/README.md

James Memory server

In order to build both the ZIP and docker packaging, run:

mvn clean install -DskipTests

ZIP distribution

Available in target directory, the ZIP include detailed instructions.

Docker distribution

To import the image locally:

docker image load -i target/jib-image.tar

Then run it:

docker run apache/james:memory-latest

For security reasons you are required to generate your own keystore, that you can mount into the container via a volume:

keytool -genkey -alias james -keyalg RSA -keystore keystore
docker run -v $PWD/keystore:/root/conf/keystore docker run apache/james:cassandra-latest

Use the JAVA_TOOL_OPTIONS environment option to pass extra JVM flags. For instance:

docker run -e "JAVA_TOOL_OPTIONS=-Xmx500m -Xms500m" apache/james:memory-latest

Glowroot APM is packaged as part of the docker distribution to easily enable valuable performances insights. Disabled by default, its java agent can easily be enabled:

docker run -e "JAVA_TOOL_OPTIONS=-javaagent:/root/glowroot.jar" apache/james:memory-latest

The CLI can easily be used:

docker exec CONTAINER-ID james-cli ListDomains