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:18 UTC

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

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