many-country-10208
01/23/2025, 1:19 PM/workspace/node_modules/.pnpm/@pulumi+pulumi@3.146.0_typescript@5.7.3/node_modules/@pulumi/pulumi/automation/errors.js:81
: new CommandError(result);
^
CommandError: code: -2
stdout:
stderr: Command failed with ENOENT: pulumi version
spawn pulumi ENOENT
err?: Error: Command failed with ENOENT: pulumi version
spawn pulumi ENOENT
at Object.createCommandError (/workspace/node_modules/.pnpm/@pulumi+pulumi@3.146.0_typescript@5.7.3/node_modules/@pulumi/pulumi/automation/errors.js:81:23)
at /workspace/node_modules/.pnpm/@pulumi+pulumi@3.146.0_typescript@5.7.3/node_modules/@pulumi/pulumi/automation/cmd.js:204:28
[...]
Do I need to install the Pulumi CLI into the container image as well or is the npm package @pulumi/pulumi already self-contained?
The docs on Embedding Pulumi with the Automation API suggest you do not need the CLI installed, however the Get started with Automation API lists it under prerequisites (assuming it's required?).
A web search did not really reveal any helpful advice with that issue. Can someone help? 🙂modern-zebra-45309
01/23/2025, 2:57 PMmodern-zebra-45309
01/23/2025, 2:58 PMmodern-zebra-45309
01/23/2025, 3:00 PMmodern-zebra-45309
01/23/2025, 3:06 PMWORKDIR /
ENV PATH="${PATH}:/root/.pulumi/bin"
RUN apt-get update && \
apt-get install curl --no-install-recommends -y && \
curl -fsSL <https://get.pulumi.com> | sh && \
echo "${PATH}" && which pulumi && pulumi versionkind-motherboard-59197
01/23/2025, 3:53 PMmany-country-10208
02/06/2025, 4:03 PMpulumi/pulumi-nodejs image and it works flawlessly! Thanks a lot, @kind-motherboard-59197 and @modern-zebra-45309 🙂👍