mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
9f663fd9c4
commit
db77a731be
@ -1,17 +0,0 @@
|
||||
.PHONY: build push deploy
|
||||
|
||||
NAME := echo
|
||||
TAG := $(shell date +'%Y.%m.%dT%H.%M')
|
||||
|
||||
build:
|
||||
rm -rf public
|
||||
hugo
|
||||
gox -osarch=linux/amd64 -output server
|
||||
docker build -t gcr.io/$(PROJECT_ID)/$(NAME):$(TAG) .
|
||||
|
||||
push: build
|
||||
gcloud docker push gcr.io/fluent-anagram-95603/$(NAME):$(TAG)
|
||||
|
||||
deploy: push
|
||||
# https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/user-guide/kubectl/kubectl_rolling-update.md
|
||||
kubectl rolling-update $(NAME) --image=gcr.io/($PROJECT_ID)/$(NAME):$(TAG)
|
@ -1,29 +0,0 @@
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "ReplicationController",
|
||||
"metadata": {
|
||||
"name": "echo"
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 2,
|
||||
"selector": {
|
||||
"name": "echo"
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"labels": {
|
||||
"name": "echo"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [{
|
||||
"image": "gcr.io/fluent-anagram-95603/echo",
|
||||
"name": "echo",
|
||||
"ports": [{
|
||||
"containerPort": 5091
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Service",
|
||||
"metadata": {
|
||||
"name": "echo",
|
||||
"labels": {
|
||||
"name": "echo"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"ports": [{
|
||||
"port": 5091
|
||||
}],
|
||||
"selector": {
|
||||
"name": "echo"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user