Skip to content

Commit

Permalink
Move to Go 1.17 for templates
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Mar 2, 2022
1 parent 464715b commit db7e3fa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion template/golang-http/Dockerfile
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16-alpine3.14 as build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine3.15 as build

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
6 changes: 4 additions & 2 deletions template/golang-http/template.yml
@@ -1,12 +1,14 @@
language: golang-http
fprocess: ./handler
welcome_message: |
You have created a new function which uses Go 1.16.
You have created a new function which uses Go 1.17 and Alpine
Linux as its base image.
To disable the go module, for private vendor code, please use
"--build-arg GO111MODULE=off" with faas-cli build or configure this
via your stack.yml file.
See more: https://docs.openfaas.com/cli/templates/
For detailed examples:
For the template's repo and more examples:
https://github.com/openfaas-incubator/golang-http-template
2 changes: 1 addition & 1 deletion template/golang-middleware/Dockerfile
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16-alpine3.14 as build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine3.15 as build

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
6 changes: 4 additions & 2 deletions template/golang-middleware/template.yml
@@ -1,12 +1,14 @@
language: golang-middleware
fprocess: ./handler
welcome_message: |
You have created a new function which uses Go 1.16.
You have created a new function which uses Go 1.17 and Alpine
Linux as its base image.
To disable the go module, for private vendor code, please use
"--build-arg GO111MODULE=off" with faas-cli build or configure this
via your stack.yml file.
See more: https://docs.openfaas.com/cli/templates/
For detailed examples:
For the template's repo and more examples:
https://github.com/openfaas-incubator/golang-http-template

0 comments on commit db7e3fa

Please sign in to comment.