首页 文章

数字海洋杀死了码头 Worker 的构建过程

提问于
浏览
0

数字海洋杀死码头工艺,为什么?

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 之后..

enter image description here

[4/4] Building fresh packages...
Killed
ERROR: Job failed: exit code 1

为什么被杀?

我有一个本地环境,有相同的linux发行版docker gitlab runner . 在当地工作 .

1 回答

  • 1

    通常 Killed 消息来自Linux OOM(Out Of Memory)杀手 . 我打赌如果你检查 dmesg 输出,你会发现一个关于正在被杀死的进程的OOM消息,因为没有足够的可用内存 . 在这种情况下,您需要为系统提供更多内存(或者,在Digital Ocean的情况下,可能没有任何交换空间,您可以从创建一些内存开始) .

相关问题