i’m trying to run pulumi inside a docker container...
# general
g
i’m trying to run pulumi inside a docker container / ci environment, but I’m getting the error
error: failed to load language plugin nodejs: no language plugin 'nodejs' found in the workspace or on your $PATH
. I can’t remember having to install a nodejs plugin explicitly locally, nor does
pulumi plugin ls
show locally a nodejs plugin. Any hints on what may be the problem? Note in the CI environment I’m running node 10, whereas locally I just have node 8 - may that be the cause?
found the cause after a bit of digging. I added pulumi to the path by creating a symlink
/usr/local/bin/pulumi -> /root/.pulumi/bin/pulumi
and apparently pulumi CLI didn’t like being symlinked that way.
b
Ah, yes,
pulumi
tries to load plugins from your path. So, if you need to load the Node.js runtime, it'll look for
pulumi-language-nodejs
, and if you need to load the AWS resource provider, it'll look for
pulumi-resource-aws
. So by symlinking, I suspect it did not find the binary adjacent to itself and failed. One solution is to add
~/.pulumi/bin
to your path (defeating the purpose, I suppose of your symlink), or symlinking the plugins also.