0

我需要增加堆大小限制--max_old_space_size=6144,但我不确定如何将标志传递给 Wercker 中的节点。

wercker.yml

box: node:6.9.1

build:
  steps:
    - npm-install@1.1.4
    - script:
        name: package
        code: npm run-script package

container:
  steps:
    - npm-install@1.1.4:
        cwd: container/
        options: --only=prod
    - script:
        name: create output directory
        code: mkdir -p $WERCKER_OUTPUT_DIR
    - script:
        name: copy to output directory
        code: cp -rp container/* $WERCKER_OUTPUT_DIR

push:
  steps:
    - script:
        name: create srv directory
        code: mkdir -p /srv
    - script:
        name: create cert directory
        code: mkdir -p /etc/ssl/private
    - script:
        name: copy source to srv directory
        code: cp -rp $WERCKER_SOURCE_DIR/* /srv
    - internal/docker-push:
        ports: 80, 443
        entrypoint: "node --max_old_space_size=6144"
        cmd: .
        working-dir: /srv
        volumes: /etc/ssl/private
        env: '"NODE_ENV=production"'
        author: $MAINTAINER
        repository: some/repo
        tag: $DOCKER_HUB_TAG, $WERCKER_GIT_COMMIT, $WERCKER_GIT_BRANCH
        username: $DOCKER_HUB_USERNAME
        password: $DOCKER_HUB_PASSWORD
        registry: https://registry.hub.docker.com/v2
4

1 回答 1

0

Wercker 说,因为ENTRYPOINT它们“仅支持单个字符串值,将使用 go-shlex 将其转换为 exec 形式”

你试过entrypoint:带引号和不带引号的论点吗?

于 2017-02-24T02:58:32.953 回答