From a63e57fa5f72904b5973ac3c989ce1d85273df50 Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario Date: Mon, 18 Sep 2023 15:23:41 -0700 Subject: [PATCH] Build sandbox-lite using monorepo Signed-off-by: Eduardo Apolinario --- .github/workflows/lite-image-manual.yml | 2 +- .github/workflows/sandbox.yml | 2 +- .../sandbox-lite/Dockerfile => Dockerfile.sandbox-lite | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) rename docker/sandbox-lite/Dockerfile => Dockerfile.sandbox-lite (93%) diff --git a/.github/workflows/lite-image-manual.yml b/.github/workflows/lite-image-manual.yml index 00236b465d..8b5831b0e2 100644 --- a/.github/workflows/lite-image-manual.yml +++ b/.github/workflows/lite-image-manual.yml @@ -58,7 +58,7 @@ jobs: target: dind tags: ${{ steps.dind-names.outputs.tags }} build-args: "FLYTE_VERSION=${{ steps.set_version.outputs.flyte_version }}" - file: docker/sandbox-lite/Dockerfile + file: Dockerfile.sandbox-lite cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new - # Temp fix diff --git a/.github/workflows/sandbox.yml b/.github/workflows/sandbox.yml index ffc8a28478..e2edc878af 100644 --- a/.github/workflows/sandbox.yml +++ b/.github/workflows/sandbox.yml @@ -114,4 +114,4 @@ jobs: target: dind tags: ${{ steps.dind-names.outputs.tags }} build-args: "FLYTE_VERSION=${{ steps.set_version.outputs.flyte_version }}" - file: docker/sandbox-lite/Dockerfile + file: Dockerfile.sandbox-lite diff --git a/docker/sandbox-lite/Dockerfile b/Dockerfile.sandbox-lite similarity index 93% rename from docker/sandbox-lite/Dockerfile rename to Dockerfile.sandbox-lite index 06059c6783..095c83b6e1 100644 --- a/docker/sandbox-lite/Dockerfile +++ b/Dockerfile.sandbox-lite @@ -15,6 +15,15 @@ RUN apk add --no-cache build-base COPY go.mod go.sum /app/flyte/ WORKDIR /app/flyte + +COPY datacatalog datacatalog +COPY flyteadmin flyteadmin +COPY flytecopilot flytecopilot +COPY flyteidl flyteidl +COPY flyteplugins flyteplugins +COPY flytepropeller flytepropeller +COPY flytestdlib flytestdlib + RUN go mod download COPY --from=flyteconsole /app/ cmd/single/dist