You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ad...@apache.org on 2016/11/18 13:18:17 UTC

[1/2] james-project git commit: JAMES-1857: Add more documentation on README file

Repository: james-project
Updated Branches:
  refs/heads/master 56acfd067 -> 07a43adbe


JAMES-1857: Add more documentation on README file


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

Branch: refs/heads/master
Commit: 07a43adbe77f25ef6f213e1134dcb0ee514b4e5a
Parents: 62ac5f7
Author: Quynh Nguyen <qn...@linagora.com>
Authored: Thu Nov 10 16:01:46 2016 +0700
Committer: Quynh Nguyen <qn...@linagora.com>
Committed: Fri Nov 18 17:27:52 2016 +0700

----------------------------------------------------------------------
 README.adoc | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/07a43adb/README.adoc
----------------------------------------------------------------------
diff --git a/README.adoc b/README.adoc
index abd4145..f2ea15e 100644
--- a/README.adoc
+++ b/README.adoc
@@ -196,6 +196,9 @@ $ keytool -genkey -alias james -keyalg RSA -keystore dockerfiles/run/spring/dest
 Then we need to build james container :
 $ docker build -t james_run dockerfiles/run/spring/
 
+The provisioned james images bases on pre-build james server which is "linagora/james-project-spring-jpa". If we need to build james container with the default initial data (initial domain: james.local and initial users: user01, user02, user03):
+$ docker build -t james_run dockerfiles/run/spring/provisioned/
+
 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" --name james_run -t james_run
 


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


[2/2] james-project git commit: JAMES-1857: JWS-Create James Image for get started part

Posted by ad...@apache.org.
JAMES-1857: JWS-Create James Image for get started part


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

Branch: refs/heads/master
Commit: 62ac5f7810bd651ed0b38ae2ca26f06ef037a904
Parents: 56acfd0
Author: Quynh Nguyen <qn...@linagora.com>
Authored: Tue Nov 8 17:26:16 2016 +0700
Committer: Quynh Nguyen <qn...@linagora.com>
Committed: Fri Nov 18 17:27:52 2016 +0700

----------------------------------------------------------------------
 dockerfiles/run/spring/provisioned/Dockerfile   | 20 ++++++++++++++++++++
 .../run/spring/provisioned/initialdata.sh       | 10 ++++++++++
 dockerfiles/run/spring/provisioned/startup.sh   |  5 +++++
 3 files changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/62ac5f78/dockerfiles/run/spring/provisioned/Dockerfile
----------------------------------------------------------------------
diff --git a/dockerfiles/run/spring/provisioned/Dockerfile b/dockerfiles/run/spring/provisioned/Dockerfile
new file mode 100644
index 0000000..f6f8f47
--- /dev/null
+++ b/dockerfiles/run/spring/provisioned/Dockerfile
@@ -0,0 +1,20 @@
+# Run James
+#
+# VERSION	1.0
+
+FROM linagora/james-jpa-spring
+
+WORKDIR /root
+
+RUN git clone https://github.com/vishnubob/wait-for-it.git wait-for-it
+RUN cp /root/wait-for-it/wait-for-it.sh /usr/bin/wait-for-it.sh
+
+COPY startup.sh /root/james-server-app-3.0.0-beta6-SNAPSHOT/bin
+COPY initialdata.sh /root/james-server-app-3.0.0-beta6-SNAPSHOT/bin
+
+RUN chmod +x /root/james-server-app-3.0.0-beta6-SNAPSHOT/bin/startup.sh
+RUN chmod +x /root/james-server-app-3.0.0-beta6-SNAPSHOT/bin/initialdata.sh
+
+WORKDIR /root/james-server-app-3.0.0-beta6-SNAPSHOT/bin
+
+ENTRYPOINT ["./startup.sh"]

http://git-wip-us.apache.org/repos/asf/james-project/blob/62ac5f78/dockerfiles/run/spring/provisioned/initialdata.sh
----------------------------------------------------------------------
diff --git a/dockerfiles/run/spring/provisioned/initialdata.sh b/dockerfiles/run/spring/provisioned/initialdata.sh
new file mode 100644
index 0000000..5d0805f
--- /dev/null
+++ b/dockerfiles/run/spring/provisioned/initialdata.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+./james-cli.sh -h localhost -p 9999 adddomain james.local
+./james-cli.sh -h localhost -p 9999 adduser user01@james.local 1234
+./james-cli.sh -h localhost -p 9999 adduser user02@james.local 1234
+./james-cli.sh -h localhost -p 9999 adduser user03@james.local 1234
+
+
+
+

http://git-wip-us.apache.org/repos/asf/james-project/blob/62ac5f78/dockerfiles/run/spring/provisioned/startup.sh
----------------------------------------------------------------------
diff --git a/dockerfiles/run/spring/provisioned/startup.sh b/dockerfiles/run/spring/provisioned/startup.sh
new file mode 100644
index 0000000..e2bd972
--- /dev/null
+++ b/dockerfiles/run/spring/provisioned/startup.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+wait-for-it.sh --host=localhost --port=9999 --strict --timeout=0 -- ./initialdata.sh &
+
+./wrapper-linux-x86-64 ../conf/wrapper.conf wrapper.syslog.ident=james wrapper.pidfile=../var/james.pid wrapper.daemonize=FALSE


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