Repository: james-project Updated Branches: refs/heads/master 45d2607fb -> 9e3a28cdb
update docker/guice section in README - add command for building james artifact (guice/cassandra section) - add missing jmap port mapping when running james container. - fix section's missing markdown formatting Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/e1b36e10 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/e1b36e10 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/e1b36e10 Branch: refs/heads/master Commit: e1b36e10425efaa14988a030dced820df6746702 Parents: 00678d8 Author: Fabien Vignon <fvig...@linagora.com> Authored: Tue Mar 1 14:50:10 2016 +0100 Committer: Fabien Vignon <fvig...@linagora.com> Committed: Tue Mar 1 15:23:30 2016 +0100 ---------------------------------------------------------------------- README.txt | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/e1b36e10/README.txt ---------------------------------------------------------------------- diff --git a/README.txt b/README.txt index ce61fb3..a29b6ad 100644 --- a/README.txt +++ b/README.txt @@ -97,26 +97,43 @@ This feature available for two configurations : Run James with Java 8 + Guice + Cassandra + ElasticSearch ========================================================= -* Requirements +## Requirements Built artifacts should be in ./dockerfiles/run/guice/destination folder. - -* Howto ? -You need a running cassandra in docker. To achieve this run : +If you haven't already: +```bash +$ docker build -t james/project dockerfiles/compilation/java-8 +$ docker run -v $HOME/.m2:/root/.m2 -v $PWD:/origin \ + -v $PWD/dockerfiles/run/guice/destination:/destination \ + -t james/project -s HEAD +``` + +## Howto ? +You need a running **cassandra** in docker. To achieve this run : +```bash $ docker run -d --name=cassandra cassandra:2.2.3 +``` -You need a running ElasticSearch in docker. To achieve this run : +You need a running **ElasticSearch** in docker. To achieve this run : +```bash $ docker run -d --name=elasticsearch elasticsearch:1.5.2 +``` We need to provide the key we will use for TLS. For obvious reasons, this is not provided in this git. -Copy your TSL keys to destination/run/guice/conf/keystore or generate it using the following command. The password must be james72laBalle to match default configuration. +Copy your TLS keys to `destination/run/guice/conf/keystore` or generate it using the following command. The password must be `james72laBalle` to match default configuration. +```bash $ keytool -genkey -alias james -keyalg RSA -keystore dockerfiles/run/guice/destination/conf/keystore +``` Then we need to build james container : +```bash $ docker build -t james_run dockerfiles/run/guice/ +``` To run this container : -$ docker run --hostname HOSTNAME -p "25:25" -p "110:110" -p "143:143" -p "465:465" -p "587:587" -p "993:993" --link cassandra:cassandra --link elasticsearch:elasticsearch --name james_run -t james_run +```bash +$ docker run --hostname HOSTNAME -p "25:25" -p 80:80 -p "110:110" -p "143:143" -p "465:465" -p "587:587" -p "993:993" --link cassandra:cassandra --link elasticsearch:elasticsearch --name james_run -t james_run +``` Where : - HOSTNAME: is the hostname you want to give to your James container. This DNS entry will be used to send mail to your James server. --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org