serverless / compose

Orchestrate Serverless Framework in monorepos
https://serverless.com/framework/docs/guides/compose
MIT License
111 stars 15 forks source link

"TypeError: process.stdin.setRawMode is not a function" in Gitlab-CI-Pipeline #66

Closed Robert-Bartel closed 2 years ago

Robert-Bartel commented 2 years ago

We use Gitlab-CI for our deployment.

If we ran serverless-compose deploy --stage prod as a Gitlab-CI-Job, we get the error:

$ serverless-compose deploy --stage prod
Environment: linux, node 17.8.0, compose 0.0.9
Docs:        github.com/serverless/compose
Bugs:        github.com/serverless/compose/issues
Error:
TypeError: process.stdin.setRawMode is not a function
    at Context.startInteractiveInput (/usr/local/lib/node_modules/@serverless/compose-beta/src/Context.js:92:19)
    at Context.init (/usr/local/lib/node_modules/@serverless/compose-beta/src/Context.js:45:12)
    at runComponents (/usr/local/lib/node_modules/@serverless/compose-beta/src/index.js:2[40](https://git.rsvx.it/core/clearing/clearing/-/jobs/3992525#L40):17)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Definition of Gitlab-CI-Job (stripped-down):

deploy:
    stage: deploy
    script:
        - serverless-compose deploy --stage live

On command line the call works fine.

mnapoli commented 2 years ago

Thank you, I can reproduce. I'll fix that as it's very close to what I'm addressing in my current branch.