karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [karaf] branch master updated: [KARAF-5982] Add support of server mode in the Docker entrypoint
Date Thu, 18 Oct 2018 04:26:03 GMT
This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new 730c2dc  [KARAF-5982] Add support of server mode in the Docker entrypoint
730c2dc is described below

commit 730c2dc11a7854543416aa399b527b22d9a9c334
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
AuthorDate: Thu Oct 18 06:25:08 2018 +0200

    [KARAF-5982] Add support of server mode in the Docker entrypoint
---
 assemblies/docker/docker-entrypoint.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/assemblies/docker/docker-entrypoint.sh b/assemblies/docker/docker-entrypoint.sh
index 4ccda8b..8644f9f 100755
--- a/assemblies/docker/docker-entrypoint.sh
+++ b/assemblies/docker/docker-entrypoint.sh
@@ -18,7 +18,12 @@
 # limitations under the License.
 ################################################################################
 
-echo "Starting Apache Karaf"
-exec $KARAF_HOME/bin/karaf
+if [ "$1" = "server" ]; then
+  echo "Starting Apache Karaf (server mode)"
+  exec $KARAF_HOME/bin/karaf server
+else
+  echo "Starting Apache Karaf"
+  exec $KARAF_HOME/bin/karaf
+fi
 
-exec "$@"
\ No newline at end of file
+exec "$@"


Mime
View raw message