Skip to content

Commit db7e3fa

Browse files
committed
Move to Go 1.17 for templates
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 464715b commit db7e3fa

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

template/golang-http/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
2-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16-alpine3.14 as build
2+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine3.15 as build
33

44
ARG TARGETPLATFORM
55
ARG BUILDPLATFORM

template/golang-http/template.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: golang-http
22
fprocess: ./handler
33
welcome_message: |
4-
You have created a new function which uses Go 1.16.
4+
You have created a new function which uses Go 1.17 and Alpine
5+
Linux as its base image.
56
67
To disable the go module, for private vendor code, please use
78
"--build-arg GO111MODULE=off" with faas-cli build or configure this
89
via your stack.yml file.
910
1011
See more: https://docs.openfaas.com/cli/templates/
11-
For detailed examples:
12+
13+
For the template's repo and more examples:
1214
https://github.com/openfaas-incubator/golang-http-template

template/golang-middleware/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
2-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16-alpine3.14 as build
2+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine3.15 as build
33

44
ARG TARGETPLATFORM
55
ARG BUILDPLATFORM
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: golang-middleware
22
fprocess: ./handler
33
welcome_message: |
4-
You have created a new function which uses Go 1.16.
4+
You have created a new function which uses Go 1.17 and Alpine
5+
Linux as its base image.
56
67
To disable the go module, for private vendor code, please use
78
"--build-arg GO111MODULE=off" with faas-cli build or configure this
89
via your stack.yml file.
910
1011
See more: https://docs.openfaas.com/cli/templates/
11-
For detailed examples:
12+
13+
For the template's repo and more examples:
1214
https://github.com/openfaas-incubator/golang-http-template

0 commit comments

Comments
 (0)