Skip to content

Commit

Permalink
updated spark/Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Oct 16, 2017
1 parent 7296910 commit 0f0199c
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions spark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,7 @@

REPO=harisekhon/spark

TAG=$(shell perl -n -e '/^\s*ARG\s+.+_VERSION\s*=\s*(\d+\.\d+)/ && &{ print $$1; exit }' Dockerfile)
include ../Makefile.common

ifdef LATEST
TAG=latest
endif

.PHONY: build
build:
docker build -t $(REPO):$(TAG) .

.PHONY: nocache
nocache:
docker build -t $(REPO):$(TAG) --no-cache .

.PHONY: push
push:
docker push $(REPO):$(TAG)
hooks/post_build

.PHONY: run
run:
docker run -ti -p 4040:4040 -p 7077:7077 -p 8080:8080 -p 8081:8081 $(REPO):$(TAG)

0 comments on commit 0f0199c

Please sign in to comment.