Skip to content

Instantly share code, notes, and snippets.

@arslanm
Created July 21, 2017 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arslanm/50bf98624961191e44ff38fcdc148834 to your computer and use it in GitHub Desktop.
Save arslanm/50bf98624961191e44ff38fcdc148834 to your computer and use it in GitHub Desktop.
Makefile to create docker image for filebeat as DaemonSet
all: build push
REGISTRY=your.registry.address
IMAGE=filebeat
TAG=5.5.0
build:
docker build -t $(IMAGE):$(TAG) -t $(REGISTRY)/$(IMAGE):$(TAG) .
docker build -t $(IMAGE):$(TAG) -t $(REGISTRY)/$(IMAGE):latest .
push:
docker push $(REGISTRY)/$(IMAGE):$(TAG)
docker push $(REGISTRY)/$(IMAGE):latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment