-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eduardo Apolinario <[email protected]>
- Loading branch information
1 parent
9553c6a
commit 3e4101d
Showing
2 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. | ||
# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: | ||
# | ||
# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst | ||
|
||
FROM --platform=${BUILDPLATFORM} golang:1.19-alpine3.16 as builder | ||
|
||
ARG TARGETARCH | ||
ENV GOARCH "${TARGETARCH}" | ||
ENV GOOS linux | ||
|
||
RUN apk add git openssh-client make curl | ||
|
||
# Create the artifacts directory | ||
RUN mkdir /artifacts | ||
|
||
WORKDIR /go/src/github.com/flyteorg/flyteadmin | ||
|
||
COPY datacatalog ../datacatalog | ||
COPY flyteadmin . | ||
COPY flytecopilot ../flytecopilot | ||
COPY flyteidl ../flyteidl | ||
COPY flyteplugins ../flyteplugins | ||
COPY flytepropeller ../flytepropeller | ||
COPY flytestdlib ../flytestdlib | ||
|
||
# This 'linux_compile_scheduler' target should compile binaries to the /artifacts directory | ||
# The main entrypoint should be compiled to /artifacts/flytescheduler | ||
RUN make linux_compile_scheduler | ||
|
||
# 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.15 | ||
LABEL org.opencontainers.image.source https://github.com/flyteorg/flyteadmin | ||
|
||
COPY --from=builder /artifacts /bin | ||
|
||
# Ensure the latest CA certs are present to authenticate SSL connections. | ||
RUN apk --update add ca-certificates | ||
|
||
RUN addgroup -S flyte && adduser -S flyte -G flyte | ||
USER flyte | ||
|
||
CMD ["flytescheduler"] | ||
|