Skip to content

Commit

Permalink
Add comment to Make and tweak README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tmckayus committed Sep 15, 2016
1 parent 10feeb4 commit 4a21a0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion openshift-spark-py27-sti/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
BASE_IMAGE=centos/python-27-centos7:latest
LOCAL_IMAGE=openshift-spark-py27-sti
SPARK_IMAGE=myproject/openshift-spark-py27-sti

# If you are going to push the built image to a registry
# using the "push" make target then you should replace
# "project" with an appropriate path for your registry and/or project
SPARK_IMAGE=project/openshift-spark-py27-sti

.PHONY: build clean push create destroy artifacts clean-artifacts clean-dockerfile clean-scripts clean-template

Expand Down
5 changes: 4 additions & 1 deletion openshift-spark-py27-sti/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ the parent directory contain the same version of spark.

## How to use this Makefile

The `clean`, `build`, `create`, and `destroy` targets are analagous
The `clean`, `build`, `push`, `create`, and `destroy` targets are analagous
to the targets in the parent directory's Makefile.

By default the `push` target will tag the image as `project/openshift-spark-py27-sti`,
edit the Makefile and change `SPARK_IAMGE` to control this.

However, files must be copied from the parent directory before the
image may be built. To do this use `make artifacts`:

Expand Down

0 comments on commit 4a21a0c

Please sign in to comment.