INNER CODE UNIT · JavaScript

maxBuffer

localstack/serverless-localstack · src/index.js:541

      const maxBuffer = +env.EXEC_MAXBUFFER || 50 * 1000 * 1000; // 50mb buffer to handle output
      if (this.shouldRunDockerSudo()) {
        env.DOCKER_CMD = 'sudo docker';
      }


      env.IMAGE_NAME = this.getLocalstackImage();

      const options = { env: env, maxBuffer };
      return exec('localstack start -d', options)
        .then(getContainer)
        .then((containerID) => addNetworks(containerID))
        .then((containerID) => checkStatus(containerID));
    };

    const startCompose = () => {
      this.log(
        'Starting LocalStack using the provided docker-compose file. This can take a while.',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…