From a61c9974f91225b0b222cd6caacc3eeff8267a3c Mon Sep 17 00:00:00 2001 From: Flyte Bot Date: Mon, 1 Nov 2021 13:33:25 -0700 Subject: [PATCH] Update Boilerplate (#44) Signed-off-by: Flyte-Bot Signed-off-by: Yee Hing Tong Co-authored-by: flyte-bot Co-authored-by: Yee Hing Tong --- datacatalog/boilerplate/flyte/end2end/end2end.sh | 2 ++ .../flyte/golang_dockerfile/Dockerfile.GoTemplate | 10 ++++++++-- datacatalog/boilerplate/flyte/welcome_bot/config.yml | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/datacatalog/boilerplate/flyte/end2end/end2end.sh b/datacatalog/boilerplate/flyte/end2end/end2end.sh index b2492de01c..b28df383f2 100755 --- a/datacatalog/boilerplate/flyte/end2end/end2end.sh +++ b/datacatalog/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/datacatalog/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate b/datacatalog/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate index 98fc70e001..a51f8e1b14 100644 --- a/datacatalog/boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate +++ b/datacatalog/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.11.12 +FROM alpine:3.14 COPY --from=builder /artifacts /bin RUN apk --update add ca-certificates diff --git a/datacatalog/boilerplate/flyte/welcome_bot/config.yml b/datacatalog/boilerplate/flyte/welcome_bot/config.yml index f99bcd78f1..7afe6111f5 100644 --- a/datacatalog/boilerplate/flyte/welcome_bot/config.yml +++ b/datacatalog/boilerplate/flyte/welcome_bot/config.yml @@ -3,6 +3,7 @@ newPRWelcomeComment: > Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line: + - Most of the repos have a PR template; if not, fill it out to the best of your knowledge. - Sign off your commits (Reference: [DCO Guide](https://github.com/src-d/guide/blob/master/developer-community/fix-DCO.md)).