Skip to content

'plugin install' does nothing in Dockerfile #7727

Discussion options

You must be logged in to vote

Nothing wrong with Pulumi.
After finding out that Pulumi stores plugin files in the current user's home directory (node in case of docker with pulumi-nodejs image) I knew what the problem is.
Apparently the problems is with permissions (or plugin directory location). Since during docker build current user is root, plugins would install to /root/.pulumi/plugins.
Current user inside container (after docker exec) is node. Pulumi thinks install location is /home/node/.pulumi/plugins) and that location has no plugins.

Easy fix is to add USER node directive before any pulumi command.

A bit more advanced technique is to change PULUMI_HOME environment variable and then chown to node user after e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sudocovik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant