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 bt...@apache.org on 2020/05/25 10:49:23 UTC

[james-project] 05/06: JAMES-3187 Provisionned docker: add a cli helper script

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch 3.5.x
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 2207d8b3d833cefee9b63b7ecebe6433e5a41fc5
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon May 18 18:18:55 2020 +0700

    JAMES-3187 Provisionned docker: add a cli helper script
---
 dockerfiles/run/guice/provisioned/Dockerfile | 3 ++-
 dockerfiles/run/guice/provisioned/james-cli  | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/dockerfiles/run/guice/provisioned/Dockerfile b/dockerfiles/run/guice/provisioned/Dockerfile
index 1acdd8a..a0fdade 100644
--- a/dockerfiles/run/guice/provisioned/Dockerfile
+++ b/dockerfiles/run/guice/provisioned/Dockerfile
@@ -2,7 +2,7 @@
 #
 # VERSION	1.0
 
-FROM linagora/james-jpa-guice
+FROM linagora/james-jpa-guice:james-project-3.4.0
 
 # Install git
 RUN apt-get update
@@ -15,6 +15,7 @@ RUN cp /root/wait-for-it/wait-for-it.sh /usr/bin/wait-for-it.sh
 
 COPY startup.sh /root
 COPY initialdata.sh /root
+COPY james-cli /usr/local/bin/
 
 RUN chmod +x /root/startup.sh
 RUN chmod +x /root/initialdata.sh
diff --git a/dockerfiles/run/guice/provisioned/james-cli b/dockerfiles/run/guice/provisioned/james-cli
new file mode 100755
index 0000000..752e29c
--- /dev/null
+++ b/dockerfiles/run/guice/provisioned/james-cli
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+java -jar /root/james-cli.jar -h 127.0.0.1 -p 9999 "$@"
\ No newline at end of file


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