-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd0624c
commit de6cd33
Showing
16 changed files
with
4,151 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,22 @@ FROM --platform=${BUILDPLATFORM} golang:1.19.1-bullseye AS flytebuilder | |
ARG TARGETARCH | ||
ENV GOARCH "${TARGETARCH}" | ||
ENV GOOS linux | ||
ENV GOPRIVATE github.com/unionai/* | ||
RUN mkdir -m 0700 ~/.ssh | ||
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
||
|
||
WORKDIR /flyteorg/build | ||
COPY go.mod go.sum ./ | ||
COPY go.mod.main ./go.mod | ||
COPY go.sum.main ./go.sum | ||
RUN go mod download | ||
RUN echo '\ | ||
[url "ssh://[email protected]/"]\n\ | ||
insteadOf = https://github.com/'\ | ||
>> /root/.gitconfig | ||
|
||
COPY go.mod go.sum ./ | ||
RUN --mount=type=ssh go mod download | ||
COPY cmd cmd | ||
COPY --from=flyteconsole /app/ cmd/single/dist | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/go/pkg/mod \ | ||
|
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
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
Oops, something went wrong.