-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add back all files according to 9d7e55e
Signed-off-by: Yee Hing Tong <[email protected]>
- Loading branch information
1 parent
72f8b31
commit 232a1c7
Showing
55 changed files
with
5,548 additions
and
6 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,42 @@ | ||
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/flyte/flyteartifacts/ | ||
|
||
COPY datacatalog ../datacatalog | ||
COPY flyteadmin ../flyteadmin | ||
COPY flyteartifacts . | ||
COPY flytecopilot ../flytecopilot | ||
COPY flyteidl ../flyteidl | ||
COPY flyteplugins ../flyteplugins | ||
COPY flytepropeller ../flytepropeller | ||
COPY flytestdlib ../flytestdlib | ||
|
||
# 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/flyte/ | ||
|
||
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 ["artifacts"] |
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
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,36 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: artifact-service | ||
name: artifact-service | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: artifact-service | ||
template: | ||
metadata: | ||
labels: | ||
app: artifact-service | ||
spec: | ||
containers: | ||
- name: main | ||
image: ghcr.io/unionai/artifacts:sandbox | ||
env: | ||
- name: DATABASE_URL | ||
value: postgresql://postgres:[email protected]:5432/postgres | ||
- name: REDIS_HOST | ||
value: flyte-sandbox-redis-headless.flyte.svc.cluster.local | ||
- name: REDIS_PORT | ||
value: "6379" | ||
ports: | ||
- name: grpc | ||
containerPort: 50051 | ||
livenessProbe: | ||
initialDelaySeconds: 30 | ||
tcpSocket: | ||
port: grpc | ||
readinessProbe: | ||
tcpSocket: | ||
port: grpc |
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,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: artifact-service | ||
labels: | ||
app: artifact-service | ||
spec: | ||
ports: | ||
- name: grpc | ||
port: 50051 | ||
targetPort: 50051 | ||
selector: | ||
app: artifact-service | ||
type: ClusterIP |
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
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
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
Oops, something went wrong.