diff --git a/datacatalog/Dockerfile b/datacatalog/Dockerfile deleted file mode 100644 index 6ba53406ed..0000000000 --- a/datacatalog/Dockerfile +++ /dev/null @@ -1,53 +0,0 @@ -# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. -# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: -# -# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/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 - -# Pull GRPC health probe binary for liveness and readiness checks -RUN GRPC_HEALTH_PROBE_VERSION=v0.4.11 && \ - wget -qO/artifacts/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ - chmod +x /artifacts/grpc_health_probe && \ - echo 'ded15e598d887ccc47bf2321371950bbf930f5e4856b9f75712ce4b2b5120480 /artifacts/grpc_health_probe' > .grpc_checksum && \ - sha256sum -c .grpc_checksum - -# COPY only the go mod files for efficient caching -COPY go.mod go.sum /go/src/github.com/flyteorg/datacatalog/ -WORKDIR /go/src/github.com/flyteorg/datacatalog - -# Pull dependencies -RUN go mod download - -# COPY the rest of the source code -COPY . /go/src/github.com/flyteorg/datacatalog/ - -# This 'linux_compile' target should compile binaries to the /artifacts directory -# The main entrypoint should be compiled to /artifacts/datacatalog -RUN make linux_compile - -# 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.16 -LABEL org.opencontainers.image.source=https://github.com/flyteorg/datacatalog - -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 ["datacatalog"] diff --git a/flyteadmin/Dockerfile b/flyteadmin/Dockerfile deleted file mode 100644 index e7412dfe43..0000000000 --- a/flyteadmin/Dockerfile +++ /dev/null @@ -1,54 +0,0 @@ -# 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 - -# Pull GRPC health probe binary for liveness and readiness checks -RUN GRPC_HEALTH_PROBE_VERSION=v0.4.11 && \ - wget -qO/artifacts/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ - chmod +x /artifacts/grpc_health_probe && \ - echo 'ded15e598d887ccc47bf2321371950bbf930f5e4856b9f75712ce4b2b5120480 /artifacts/grpc_health_probe' > .grpc_checksum && \ - sha256sum -c .grpc_checksum - -# COPY only the go mod files for efficient caching -COPY go.mod go.sum /go/src/github.com/flyteorg/flyteadmin/ -WORKDIR /go/src/github.com/flyteorg/flyteadmin - -# Pull dependencies -RUN go mod download - - -# COPY the rest of the source code -COPY . /go/src/github.com/flyteorg/flyteadmin/ - -# This 'linux_compile' target should compile binaries to the /artifacts directory -# The main entrypoint should be compiled to /artifacts/flyteadmin -RUN make linux_compile - -# 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.16 -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 ["flyteadmin"] diff --git a/flyteadmin/scheduler.Dockerfile b/flyteadmin/scheduler.Dockerfile deleted file mode 100644 index 35753d84be..0000000000 --- a/flyteadmin/scheduler.Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -# 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.18-alpine3.15 as builder - -ARG TARGETARCH -ENV GOARCH "${TARGETARCH}" -ENV GOOS linux - -RUN apk add git openssh-client make curl - -# COPY only the go mod files for efficient caching -COPY go.mod go.sum /go/src/github.com/flyteorg/flyteadmin/ -WORKDIR /go/src/github.com/flyteorg/flyteadmin - -# Pull dependencies -RUN go mod download - -# COPY the rest of the source code -COPY . /go/src/github.com/flyteorg/flyteadmin/ - -# 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"] - diff --git a/flytecopilot/Dockerfile b/flytecopilot/Dockerfile deleted file mode 100644 index 741b668bfd..0000000000 --- a/flytecopilot/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -# 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 - -# COPY only the go mod files for efficient caching -COPY go.mod go.sum /go/src/github.com/lyft/flyteplugins/ -WORKDIR /go/src/github.com/lyft/flyteplugins - -# Pull dependencies -RUN go mod download - -# COPY the rest of the source code -COPY . /go/src/github.com/lyft/flyteplugins/ - -# This 'linux_compile' target should compile binaries to the /artifacts directory -# The main entrypoint should be compiled to /artifacts/flyteplugins -RUN make linux_compile - -# 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.16 -LABEL org.opencontainers.image.source https://github.com/lyft/flyteplugins - -COPY --from=builder /artifacts /bin - -RUN apk --update add ca-certificates - -CMD ["flyte-copilot"] diff --git a/flytepropeller/Dockerfile b/flytepropeller/Dockerfile deleted file mode 100644 index 84ae3b8585..0000000000 --- a/flytepropeller/Dockerfile +++ /dev/null @@ -1,42 +0,0 @@ -# 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 - -# COPY only the go mod files for efficient caching -COPY go.mod go.sum /go/src/github.com/flyteorg/flytepropeller/ -WORKDIR /go/src/github.com/flyteorg/flytepropeller - -# Pull dependencies -RUN go mod download - -# COPY the rest of the source code -COPY . /go/src/github.com/flyteorg/flytepropeller/ - -# This 'linux_compile' target should compile binaries to the /artifacts directory -# The main entrypoint should be compiled to /artifacts/flytepropeller -RUN make linux_compile - -# 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.16 -LABEL org.opencontainers.image.source https://github.com/flyteorg/flytepropeller - -COPY --from=builder /artifacts /bin - -RUN apk --update add ca-certificates - -RUN addgroup -S flyte && adduser -S flyte -G flyte -USER flyte - -CMD ["flytepropeller"]