From 28aef1390ad38ecd44494acfba4d478fac6919a7 Mon Sep 17 00:00:00 2001 From: coffeeorgreentea <90069434+coffeeorgreentea@users.noreply.github.com> Date: Fri, 7 Jun 2024 17:42:42 -0400 Subject: [PATCH] make containers use bun pm --- scripts/Dockerfile.connector | 4 +++- scripts/Dockerfile.embedder | 5 ++++- scripts/Dockerfile.manager | 5 ++++- scripts/Dockerfile.server | 3 ++- scripts/Dockerfile.worker | 4 +++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/scripts/Dockerfile.connector b/scripts/Dockerfile.connector index f2c38b8569..ff9cd4ab6d 100644 --- a/scripts/Dockerfile.connector +++ b/scripts/Dockerfile.connector @@ -15,7 +15,9 @@ RUN git submodule update --init --recursive portal/cloud # RUN poetry install --no-root -RUN npm install +RUN npm i -g bun + +RUN bun i RUN npm run build-connector diff --git a/scripts/Dockerfile.embedder b/scripts/Dockerfile.embedder index afcd3777d3..49b0871bbd 100644 --- a/scripts/Dockerfile.embedder +++ b/scripts/Dockerfile.embedder @@ -16,7 +16,10 @@ RUN git submodule update --init --recursive portal/cloud # This application does not need the prisma clients RUN sed -i '/"postinstall":/d' package.json -RUN npm install +RUN npm i -g bun + +RUN bun i + # Using the nx cli to build the app the .output folder is disappearing # I'll figure it out later but for now this works diff --git a/scripts/Dockerfile.manager b/scripts/Dockerfile.manager index c1e7c92411..94e4833fc9 100644 --- a/scripts/Dockerfile.manager +++ b/scripts/Dockerfile.manager @@ -15,7 +15,10 @@ RUN git submodule update --init --recursive portal/cloud # RUN poetry install --no-root -RUN npm install +RUN npm i -g bun + +RUN bun i + RUN npm run build-cloud-agent-manager diff --git a/scripts/Dockerfile.server b/scripts/Dockerfile.server index 7d37e94783..b3630a26f3 100644 --- a/scripts/Dockerfile.server +++ b/scripts/Dockerfile.server @@ -16,8 +16,9 @@ RUN git submodule update --init --recursive portal/cloud # RUN poetry install --no-root RUN npm i -g nx +RUN npm i -g bun -RUN npm install +RUN bun i RUN npm run build-server diff --git a/scripts/Dockerfile.worker b/scripts/Dockerfile.worker index 07d9743540..18bb6824b9 100644 --- a/scripts/Dockerfile.worker +++ b/scripts/Dockerfile.worker @@ -15,7 +15,9 @@ RUN git submodule update --init --recursive portal/cloud # RUN poetry install --no-root -RUN npm install +RUN npm i -g bun + +RUN bun i RUN npm run build-cloud-agent-worker