Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Update Boilerplate (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Flyte-Bot <[email protected]>

Co-authored-by: flyte-bot <[email protected]>
  • Loading branch information
flyte-bot and flyte-bot committed Nov 1, 2021
1 parent 629575b commit 5f7d472
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions boilerplate/flyte/end2end/end2end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ then
fi

make kustomize
# launch flyte end2end
kubectl apply -f "${OUT}/deployment/test/flyte_generated.yaml"
make end2end_execute
popd
10 changes: 8 additions & 2 deletions boilerplate/flyte/golang_dockerfile/Dockerfile.GoTemplate
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5f7d472

Please sign in to comment.