You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jl...@apache.org on 2017/07/23 23:34:11 UTC
[38/50] [abbrv] ambari git commit: AMBARI-21516 Log Search docker
test environment build front/backend only (mgergely)
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/branch-feature-AMBARI-14714
Commit: 587c42d79da4b384ab18d7078c6d045a807a7bb5
Parents: 4fdca57
Author: Miklos Gergely <mg...@hortonworks.com>
Authored: Thu Jul 20 12:16:31 2017 +0200
Committer: Miklos Gergely <mg...@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
}