james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject james-project git commit: JAMES-1822 Introduce docker-compose
Date Tue, 20 Sep 2016 14:07:56 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 32e377378 -> 986d15fe4


JAMES-1822 Introduce docker-compose


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/986d15fe
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/986d15fe
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/986d15fe

Branch: refs/heads/master
Commit: 986d15fe4a0946a44c46aa9b52996058c2b59d6a
Parents: 32e3773
Author: Antoine Duprat <aduprat@linagora.com>
Authored: Thu Sep 15 11:14:43 2016 +0200
Committer: Antoine Duprat <aduprat@linagora.com>
Committed: Tue Sep 20 15:01:28 2016 +0200

----------------------------------------------------------------------
 README.txt                         | 27 +++++++++++++++++++++++++++
 dockerfiles/run/docker-compose.yml | 28 ++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/986d15fe/README.txt
----------------------------------------------------------------------
diff --git a/README.txt b/README.txt
index a7ac96a..31dda5b 100644
--- a/README.txt
+++ b/README.txt
@@ -7,6 +7,33 @@ This is the parent module for all Apache James artifacts. It contains useful
val
 * Maven plugins managemnt section with common plugins used in the project
 * URL's and mailing-lists definitions for the project
 
+How to try James
+================
+Requirements: docker & docker-compose installed.
+
+When try James by this way, you will use the last state of James.
+It will be configured to run with Cassandra & ElasticSearch.
+All those three components will be started with a single command.
+
+First, you need to build the image:
+$ docker-compose -f dockerfiles/run/docker-compose.yml build
+
+Then, you just have to start the services:
+$ docker-compose -f dockerfiles/run/docker-compose.yml up
+
+Wait a few seconds in order to have all those services up, you will see a such log when James
is available:
+james           | Started : true
+
+Then, a default domain has been created: james.local
+$ docker exec james java -jar /root/james-cli.jar -h 127.0.0.1 -p 9999 listdomains
+james.local
+
+James will respond to IMAP port 143 and SMTP port 25.
+You have to create users before playing, you may also create other domains...
+Follow the 'Useful commands' section for more information about James CLI.
+
+
+
 How to build and publish the website
 ====================================
 

http://git-wip-us.apache.org/repos/asf/james-project/blob/986d15fe/dockerfiles/run/docker-compose.yml
----------------------------------------------------------------------
diff --git a/dockerfiles/run/docker-compose.yml b/dockerfiles/run/docker-compose.yml
new file mode 100644
index 0000000..1433f68
--- /dev/null
+++ b/dockerfiles/run/docker-compose.yml
@@ -0,0 +1,28 @@
+version: '2'
+
+services:
+
+  james:
+    depends_on:
+      - elasticsearch
+      - cassandra
+    entrypoint: bash -c "java -Dworking.directory=/root/ -jar james-server.jar"
+    image: linagora/james-project:latest
+    container_name: james
+    hostname: james.local
+    ports:
+      - "80:80"
+      - "25:25"
+      - "110:110"
+      - "143:143"
+      - "465:465"
+      - "587:587"
+      - "993:993"
+
+  elasticsearch:
+    image: elasticsearch:2.2.1
+
+  cassandra:
+    image: cassandra:2.2.3
+    ports:
+      - "9042:9042"


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message