我需要使用--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
答案 0 :(得分:0)
Wercker说ENTRYPOINT
他们"only support a single string value, which will be converted to exec form using go-shlex"。
您是否尝试过使用和不使用引号的entrypoint:
参数?