mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-03 15:25:19 +00:00
We must handle null addresses in the cassandra seed provider. This can occur when there are 'notReadyAddresses' but no 'addresses'. While we're at it, update the makefile to build the jar.
19 lines
449 B
Makefile
19 lines
449 B
Makefile
# build the cassandra image.
|
|
|
|
VERSION=v7
|
|
|
|
all: build
|
|
|
|
kubernetes-cassandra.jar: ../java/* ../java/src/io/k8s/cassandra/*.java
|
|
cd ../java && mvn package
|
|
mv ../java/target/kubernetes-cassandra*.jar kubernetes-cassandra.jar
|
|
cd ../java && mvn clean
|
|
|
|
build: kubernetes-cassandra.jar
|
|
docker build -t gcr.io/google_containers/cassandra:${VERSION} .
|
|
|
|
push: build
|
|
gcloud docker push gcr.io/google_containers/cassandra:${VERSION}
|
|
|
|
.PHONY: all build push
|