You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I Always got "Container 'Build' exceeded memory limit."
On logs:
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
Any suggestion?
image: node:16.15.0
# Workflow Configuration
options:
max-time: 30
size: 2x
definitions:
services:
docker:
memory: 512
pipelines:
branches:
dev:
- step:
name: Deploy to Development
deployment: Development
caches:
- node
script:
- echo $APP_NAME > env/.env
- echo $APP_NAME > env/.env
- ...
- export NODE_OPTIONS=--max_old_space_size=8192
- npm install
- npm test
- npm run build:dev
definitions:
caches:
node: src/node_modules
Hi @김도희
Welcome to the community.
Based on the max_old_space_size option, you're using 8192 or 8 GB size for executing NPM.
I'm suspecting 8 GB for a specific process is quite a bit high.
Would it be possible for you to try to use 1024 (1 GB) instead?
export NODE_OPTIONS=--max_old_space_size=1024
Let me know how it goes.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.