Create an echo service docker image.

This commit is contained in:
Tom Alexander
2021-07-24 21:23:40 -04:00
parent 09c7cc8d03
commit 2a225de2f9
5 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
IMAGE_NAME:=echoservice
.PHONY: all
all: build push
.PHONY: build
build:
docker build -t $(IMAGE_NAME) .
.PHONY: push
push:
docker tag $(IMAGE_NAME) gcr.io/hip-wharf-319304/$(IMAGE_NAME)
docker push gcr.io/hip-wharf-319304/$(IMAGE_NAME)
.PHONY: clean
clean:
docker rmi $(IMAGE_NAME) gcr.io/hip-wharf-319304/$(IMAGE_NAME) $(IMAGE_NAME)
.PHONY: run
run:
docker run --rm -i -t -p "8080:8080" $(IMAGE_NAME)