chore: stagger docker builds to prevent parallel OOM
Publish Docker Images / Smoke test (api) (push) Canceled after 0s
Publish Docker Images / Smoke test (dashboard) (push) Canceled after 0s
Publish Docker Images / Smoke test (jobs) (push) Canceled after 0s
Publish Docker Images / build-and-push (./docker/Dockerfile.api, api, api) (push) Canceled after 0s
Publish Docker Images / build-and-push (./docker/Dockerfile.dashboard, dashboard, dashboard) (push) Canceled after 0s
Publish Docker Images / build-and-push (./docker/Dockerfile.jobs, jobs, jobs) (push) Canceled after 0s
Publish Docker Images / Smoke test (api) (push) Canceled after 0s
Publish Docker Images / Smoke test (dashboard) (push) Canceled after 0s
Publish Docker Images / Smoke test (jobs) (push) Canceled after 0s
Publish Docker Images / build-and-push (./docker/Dockerfile.api, api, api) (push) Canceled after 0s
Publish Docker Images / build-and-push (./docker/Dockerfile.dashboard, dashboard, dashboard) (push) Canceled after 0s
Publish Docker Images / build-and-push (./docker/Dockerfile.jobs, jobs, jobs) (push) Canceled after 0s
This commit is contained in:
@@ -22,7 +22,7 @@ RUN pnpm install --offline --frozen-lockfile --ignore-scripts \
|
|||||||
RUN find . -name 'tsconfig.tsbuildinfo' -delete
|
RUN find . -name 'tsconfig.tsbuildinfo' -delete
|
||||||
RUN NODE_OPTIONS="--max-old-space-size=4096" \
|
RUN NODE_OPTIONS="--max-old-space-size=4096" \
|
||||||
PUBLIC_IS_SELFHOSTED="${PUBLIC_IS_SELFHOSTED}" \
|
PUBLIC_IS_SELFHOSTED="${PUBLIC_IS_SELFHOSTED}" \
|
||||||
pnpm -r --filter @cio/dashboard... build
|
sleep 45 && pnpm -r --filter @cio/dashboard... build
|
||||||
|
|
||||||
RUN test -f apps/dashboard/build/index.js || (echo "ERROR: Dashboard build output not found at apps/dashboard/build/index.js" && exit 1)
|
RUN test -f apps/dashboard/build/index.js || (echo "ERROR: Dashboard build output not found at apps/dashboard/build/index.js" && exit 1)
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ RUN pnpm install --offline --frozen-lockfile --ignore-scripts \
|
|||||||
--store-dir /pnpm/store --filter @cio/jobs-worker...
|
--store-dir /pnpm/store --filter @cio/jobs-worker...
|
||||||
RUN find . -name 'tsconfig.tsbuildinfo' -delete
|
RUN find . -name 'tsconfig.tsbuildinfo' -delete
|
||||||
# Build the worker and all its workspace deps in topological order.
|
# Build the worker and all its workspace deps in topological order.
|
||||||
RUN pnpm -r --filter @cio/jobs-worker... build
|
RUN sleep 90 && pnpm -r --filter @cio/jobs-worker... build
|
||||||
|
|
||||||
# Run all worker entrypoints by default. Override CMD to scale media / transcribe
|
# Run all worker entrypoints by default. Override CMD to scale media / transcribe
|
||||||
# / maintenance independently.
|
# / maintenance independently.
|
||||||
|
|||||||
Reference in New Issue
Block a user