ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgerg...@apache.org
Subject ambari git commit: AMBARI-21516 Log Search docker test environment build front/backend only (mgergely)
Date Thu, 20 Jul 2017 10:16:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 4fdca575b -> 587c42d79


AMBARI-21516 Log Search docker test environment build front/backend only (mgergely)

Change-Id: I30d9d9a2c38ceeea653f7dda2c51493bd2df7ae0


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/587c42d7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/587c42d7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/587c42d7

Branch: refs/heads/trunk
Commit: 587c42d79da4b384ab18d7078c6d045a807a7bb5
Parents: 4fdca57
Author: Miklos Gergely <mgergely@hortonworks.com>
Authored: Thu Jul 20 12:16:31 2017 +0200
Committer: Miklos Gergely <mgergely@hortonworks.com>
Committed: Thu Jul 20 12:16:31 2017 +0200

----------------------------------------------------------------------
 ambari-logsearch/docker/logsearch-docker.sh | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/587c42d7/ambari-logsearch/docker/logsearch-docker.sh
----------------------------------------------------------------------
diff --git a/ambari-logsearch/docker/logsearch-docker.sh b/ambari-logsearch/docker/logsearch-docker.sh
index 4d53fa1..fc3524d 100755
--- a/ambari-logsearch/docker/logsearch-docker.sh
+++ b/ambari-logsearch/docker/logsearch-docker.sh
@@ -17,10 +17,30 @@
 sdir="`dirname \"$0\"`"
 : ${1:?"argument is missing: (start|stop|build-and-run|build|build-docker-and-run|build-mvn-and-run|build-docker-only|build-mvn-only)"}
 command="$1"
+shift
+
+while getopts "bf" opt; do
+  case $opt in
+    b) # build backend only
+      maven_build_options="-pl !ambari-logsearch-web"
+      ;;
+    f) # build frontend only
+      maven_build_options="-pl ambari-logsearch-web"
+      ;;
+    \?)
+      echo "Invalid option: -$OPTARG" >&2
+      exit 1
+      ;;
+    :)
+      echo "Option -$OPTARG requires an argument." >&2
+      exit 1
+      ;;
+  esac
+done
 
 function build_logsearch_project() {
   pushd $sdir/../
-  mvn clean package -DskipTests
+  mvn clean package -DskipTests $maven_build_options
   popd
 }
 


Mime
View raw message