Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (25 sloc) 906 Bytes
# export project_ID="your google platform project ID"
PROJECT_ID ?= testing-bsidespdx-ctf-2017
REGISTRY := gcr.io
DOCKER_IMAGE := quickstart-image
CONTAINER_TAG := ${REGISTRY}/${PROJECT_ID}/${DOCKER_IMAGE}
target: container push deploy server
clean: deleteDocker deleteKube
# Docker Configurations
container:
docker build --no-cache --tag ${CONTAINER_TAG} src
push:
gcloud docker -- push ${CONTAINER_TAG}
test:
gcloud docker -- pull ${CONTAINER_TAG}
gcloud container images list --repository ${REGISTRY}/${PROJECT_ID}
deleteDocker:
gcloud container images delete ${CONTAINER_TAG}
# Kubernetes
deploy:
cat deployment/deploy.yaml | sed 's/\%PROJECT_ID\%/${PROJECT_ID}/g' | kubectl create -f -
serve:
kubectl create -f deployment/service.yaml
deleteKube:
cat deployment/deploy.yaml | sed 's/\%PROJECT_ID\%/${PROJECT_ID}/g' | kubectl delete -f -
kubectl delete -f deployment/service.yaml
You can’t perform that action at this time.