From cef5df5ae28a6eb6b3192849d14bbfbbfa2cacc7 Mon Sep 17 00:00:00 2001 From: Ramiro Berrelleza Date: Tue, 11 Aug 2020 12:15:17 -0700 Subject: [PATCH] add okteto.yml for frontend Signed-off-by: Ramiro Berrelleza --- okteto-pipelines.yaml | 4 +++- src/frontend/.stignore | 16 ++++++++++++++++ src/frontend/okteto.yml | 23 +++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/frontend/.stignore create mode 100644 src/frontend/okteto.yml diff --git a/okteto-pipelines.yaml b/okteto-pipelines.yaml index ff5aa43..8261588 100644 --- a/okteto-pipelines.yaml +++ b/okteto-pipelines.yaml @@ -1,4 +1,6 @@ icon: https://raw.githubusercontent.com/rberrelleza/microservices-demo/master/src/frontend/static/icons/Hipster_HeroLogoCyan.svg deploy: - kubectl apply -f release/kubernetes-manifests.yaml - - kubectl annotate service frontend dev.okteto.com/auto-ingress=true \ No newline at end of file + - kubectl annotate service frontend dev.okteto.com/auto-ingress=true --overwrite +devs: + - src/frontend/okteto.yml \ No newline at end of file diff --git a/src/frontend/.stignore b/src/frontend/.stignore new file mode 100644 index 0000000..e41f6e7 --- /dev/null +++ b/src/frontend/.stignore @@ -0,0 +1,16 @@ +.git +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with go test -c +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# dlv binary +__debug_bin +vendor \ No newline at end of file diff --git a/src/frontend/okteto.yml b/src/frontend/okteto.yml new file mode 100644 index 0000000..9f9e94b --- /dev/null +++ b/src/frontend/okteto.yml @@ -0,0 +1,23 @@ +name: frontend +image: ramiro/frontend:okteto +command: +- sh +build: + target: builder +workdir: /go/src/github.com/GoogleCloudPlatform/microservices-demo/src/frontend +forward: +- 2345:2345 +- 8080:8080 +volumes: +- /go/pkg/ +- /root/.cache/go-build/ +persistentVolume: + enabled: true +resources: + limits: + cpu: "1" + memory: 2Gi +securityContext: + capabilities: + add: + - SYS_PTRACE