2016-06-03 00:25:58 +00:00
|
|
|
# Copyright 2016 The Kubernetes Authors.
|
2016-02-03 06:30:10 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2015-05-08 20:48:51 +00:00
|
|
|
.PHONY: elasticsearch_logging_discovery build push
|
2015-02-24 02:41:56 +00:00
|
|
|
|
2015-06-25 04:55:40 +00:00
|
|
|
# The current value of the tag to be used for building and
|
|
|
|
# pushing an image to gcr.io
|
2016-10-11 18:09:50 +00:00
|
|
|
TAG = v2.4.1
|
2015-02-24 02:41:56 +00:00
|
|
|
|
2015-06-02 20:39:10 +00:00
|
|
|
build: elasticsearch_logging_discovery
|
2015-04-15 20:28:02 +00:00
|
|
|
docker build -t gcr.io/google_containers/elasticsearch:$(TAG) .
|
2015-02-24 02:41:56 +00:00
|
|
|
|
2015-06-02 20:39:10 +00:00
|
|
|
push:
|
2016-10-10 20:42:29 +00:00
|
|
|
gcloud docker -- push gcr.io/google_containers/elasticsearch:$(TAG)
|
2015-05-08 20:48:51 +00:00
|
|
|
|
|
|
|
elasticsearch_logging_discovery:
|
2016-10-11 18:09:50 +00:00
|
|
|
go build -a -ldflags "-w" elasticsearch_logging_discovery.go
|
2015-06-02 20:39:10 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm elasticsearch_logging_discovery
|