forked from radanalyticsio/openshift-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 651 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# https://github.com/radanalyticsio/openshift-spark
LOCAL_IMAGE=spark
#SPARK_IMAGE=mattf/openshift-spark
# If you're pushing to an integrated registry
# in Openshift, SPARK_IMAGE will look something like this
SPARK_IMAGE=192.168.1.5:5001/test/${LOCAL_IMAGE}
all: build push
build:
docker build -t $(LOCAL_IMAGE) .
clean:
docker rmi $(LOCAL_IMAGE)
push: build
docker tag -f $(LOCAL_IMAGE) $(SPARK_IMAGE)
docker push $(SPARK_IMAGE)
create: push template.yaml
oc process -f template.yaml -v SPARK_IMAGE=$(SPARK_IMAGE) > template.active
oc create -f template.active
destroy: template.active
oc delete -f template.active
rm template.active