update makefiles to use cloud build and update README

This commit is contained in:
patc 2019-01-28 22:44:44 -08:00
parent 7f873f23b9
commit 64918cc2b4
3 changed files with 98 additions and 102 deletions

View File

@ -58,6 +58,14 @@ DaemonSet will ignore them.
Learn more in the [official Kubernetes documentation][k8sElasticsearchDocs].
## Building
Both images are now being hosted in google cloud and are built via the
[cloud build](https://cloud.google.com/cloud-build/) product. To build these
images yourself you will need to have the [gcloud sdk](https://cloud.google.com/sdk/install)
installed and you will need to login. You can then run `make` in either
image directory to trigger a container build.
### Known problems
Since Fluentd talks to the Elasticsearch service inside the cluster, instances

View File

@ -12,20 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
.PHONY: binary build push
.PHONY: build
PREFIX = staging-k8s.gcr.io
PREFIX = gcr.io/fluentd-elasticsearch
IMAGE = elasticsearch
TAG = v6.3.0
build:
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
push:
docker push $(PREFIX)/$(IMAGE):$(TAG)
binary:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-w" elasticsearch_logging_discovery.go
clean:
rm elasticsearch_logging_discovery
gcloud builds submit --tag ${PREFIX}/${IMAGE}:${TAG}

View File

@ -12,14 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
.PHONY: build push
.PHONY: build
PREFIX = staging-k8s.gcr.io
IMAGE = fluentd-elasticsearch
PREFIX = gcr.io/fluentd-elasticsearch
IMAGE = fluentd
TAG = v2.4.0
build:
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
push:
docker push $(PREFIX)/$(IMAGE):$(TAG)
gcloud builds submit --tag $(PREFIX)/$(IMAGE):$(TAG)