Created
July 21, 2017 06:36
-
-
Save arslanm/50bf98624961191e44ff38fcdc148834 to your computer and use it in GitHub Desktop.
Makefile to create docker image for filebeat as DaemonSet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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