https://pulumi.com logo
Title
f

fancy-spoon-46046

11/07/2022, 12:46 PM
Hey everyone, we would like to set custom node version. We got the info back from Meagan that we could either use pre-run commands or a custom docker image. Is there any documentation on this? Could we maybe use a
.nvmrc
or
.node-version
file, or
NODE_VERSION
environment variable?
l

lemon-agent-27707

11/07/2022, 6:55 PM
Thanks for the suggestions! I went ahead and opened issues in our public issue tracker: • easier node version support: https://github.com/pulumi/service-requests/issues/129 • update API docs for container version: https://github.com/pulumi/service-requests/issues/130 We should get the second one fixed quickly. Feel free to +1 or add notes to the issues!
From browsing our code, I believe the property you need to set is a top level property
executorContext
"executorContext": {
  "executorImage": "alpine/...",
},
Whatever image you specify, I believe it must have the Pulumi CLI already installed.
f

fancy-spoon-46046

11/08/2022, 8:05 AM
Thank you. I think we would prefer to use the default image, looking forward to the updated documentation and the flexibility we can get in the future 🙂