Skip to content

Commit 95ae414

Browse files
committed
bump to v1.0 & docker image from alpine w/ ceritifcates
1 parent 42dd532 commit 95ae414

4 files changed

Lines changed: 22 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
FROM scratch
1+
FROM alpine
22

33
ADD server /
44

5+
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
6+
57
CMD ["/server"]

deploy.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,25 @@ spec:
1717
app: taka-api
1818
spec:
1919
containers:
20-
- image: gcr.io/k8s-aksels/github-takaapp-api:v0.9
20+
- image: gcr.io/k8s-aksels/github-takaapp-api:v1.0
2121
name: taka-api-container
22+
imagePullPolicy: Always
23+
env:
24+
- name: GOOGLE_PLACES_API_KEY
25+
valueFrom:
26+
secretKeyRef:
27+
name: taka-api-secret
28+
key: GOOGLE_PLACES_API_KEY
29+
- name: ALGOLIA_SECRET
30+
valueFrom:
31+
secretKeyRef:
32+
name: taka-api-secret
33+
key: ALGOLIA_SECRET
34+
- name: ALGOLIA_APP_ID
35+
valueFrom:
36+
secretKeyRef:
37+
name: taka-api-secret
38+
key: ALGOLIA_APP_ID
2239
resources:
2340
requests:
2441
cpu: "20m"
@@ -27,4 +44,3 @@ spec:
2744
- containerPort: 1323
2845
name: taka-api-port
2946
restartPolicy: Always
30-

routes/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ import (
1111
// it is important otherwise services (eq cloudfare) will health check on /
1212
// and will think the server died
1313
func GetDocs(c echo.Context) error {
14-
return c.String(http.StatusOK, "Version 0.9")
14+
return c.String(http.StatusOK, "Version 1.0")
1515
}

server

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)