You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by if...@apache.org on 2021/11/15 20:17:40 UTC

[cassandra-harry] 01/03: Makefile: support to build without creating docker image

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

ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git

commit b566e8fb8aaff5a1420f55dd44ac366b4465ace7
Author: Amos Kong <am...@scylladb.com>
AuthorDate: Tue Jan 19 22:03:46 2021 +0800

    Makefile: support to build without creating docker image
    
    When external cluster is used, docker isn't needed.
    
    Signed-off-by: Amos Kong <am...@scylladb.com>
---
 Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c1e99dd..86d4b28 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,12 @@
 
 DOCKER_REPO   = org.apache.cassandra/harry/harry-runner
 
-img:
+mvn:
 	rm -fr shared/*
-	mvn clean && mvn package -DskipTests && docker build -t ${DOCKER_REPO}:latest-local ./ -f docker/Dockerfile.local
+	mvn clean && mvn package -DskipTests
+
+img: mvn
+	docker build -t ${DOCKER_REPO}:latest-local ./ -f docker/Dockerfile.local
 
 run: img
 	docker run -v `pwd`/shared:/shared -it ${DOCKER_REPO}:latest-local

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org