update functions/examples/template-go-nginx code and update go1.18

This commit is contained in:
koba1t
2022-06-30 02:42:59 +09:00
parent 0421c9fb50
commit 20a93fdd12
18 changed files with 653 additions and 233 deletions

View File

@@ -96,7 +96,7 @@ The script wraps itself using ` + "`" + `config run wrap -- $0` + "`" + ` which
config run wrap -- $0
exit $?
fi
cat <<End-of-message
apiVersion: v1
kind: Service
@@ -144,7 +144,7 @@ The script wraps itself using ` + "`" + `config run wrap -- $0` + "`" + ` which
` + "`" + `Dockerfile` + "`" + ` installs ` + "`" + `kustomize fn` + "`" + ` and copies the script into the container image.
FROM golang:1.13-stretch
FROM golang:1.18-stretch
RUN go get sigs.k8s.io/kustomize/cmd/config
RUN mv /go/bin/config /usr/bin/config
COPY nginx-template.sh /usr/bin/nginx-template.sh