From 5f7d47269af969a8d32ef5b7a749dde39573197d Mon Sep 17 00:00:00 2001 From: Flyte Bot Date: Mon, 1 Nov 2021 13:40:21 -0700 Subject: [PATCH] Update Boilerplate (#16) Signed-off-by: Flyte-Bot Co-authored-by: flyte-bot --- boilerplate/flyte/end2end/end2end.sh | 2 ++ .../flyte/golang_dockerfile/Dockerfile.GoTemplate | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/boilerplate/flyte/end2end/end2end.sh b/boilerplate/flyte/end2end/end2end.sh index b2492de..b28df38 100755 --- a/boilerplate/flyte/end2end/end2end.sh +++ b/boilerplate/flyte/end2end/end2end.sh @@ -30,5 +30,7 @@ then fi make kustomize +# launch flyte end2end +kubectl apply -f "${OUT}/deployment/test/flyte_generated.yaml" make end2end_execute popd diff --git a/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate b/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate index 2b5b775..a51f8e1 100644 --- a/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate +++ b/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate @@ -3,7 +3,7 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst -FROM golang:1.13.3-alpine3.10 as builder +FROM golang:1.17.1-alpine3.14 as builder RUN apk add git openssh-client make curl # COPY only the go mod files for efficient caching @@ -20,11 +20,17 @@ COPY . /go/src/github.com/flyteorg/{{REPOSITORY}}/ # The main entrypoint should be compiled to /artifacts/{{REPOSITORY}} RUN make linux_compile +# install grpc-health-probe +RUN curl --silent --fail --show-error --location --output /artifacts/grpc_health_probe "https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.5/grpc_health_probe-linux-amd64" && \ + chmod +x /artifacts/grpc_health_probe && \ + echo '8699c46352d752d8f533cae72728b0e65663f399fc28fb9cd854b14ad5f85f44 /artifacts/grpc_health_probe' > .grpc_checksum && \ + sha256sum -c .grpc_checksum + # update the PATH to include the /artifacts directory ENV PATH="/artifacts:${PATH}" # This will eventually move to centurylink/ca-certs:latest for minimum possible image size -FROM alpine:3.10 +FROM alpine:3.14 COPY --from=builder /artifacts /bin RUN apk --update add ca-certificates