数字海洋杀死码头工艺,为什么?
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- .yarn
- node_modules/
- client/semantic/
before_script:
- yarn config set cache-folder .yarn
- yarn install
stages:
- build
Compile:
stage: build
script:
- npm run build:prod
artifacts:
paths:
- dist/
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- dist/
2 minutes 34 seconds
之后..
[4/4] Building fresh packages...
Killed
ERROR: Job failed: exit code 1
为什么被杀?
我有一个本地环境,有相同的linux发行版docker gitlab runner . 在当地工作 .
1 回答
通常
Killed
消息来自Linux OOM(Out Of Memory)杀手 . 我打赌如果你检查dmesg
输出,你会发现一个关于正在被杀死的进程的OOM消息,因为没有足够的可用内存 . 在这种情况下,您需要为系统提供更多内存(或者,在Digital Ocean的情况下,可能没有任何交换空间,您可以从创建一些内存开始) .