https://pulumi.com logo
#general
Title
# general
e

early-intern-90238

10/26/2019, 10:01 PM
I feel like the Docker container used for pulumi/actions is way too large? Why is it over 500MB? I'm gonna see if I can fork that and get it running on Alpine or something...
q

quiet-wolf-18467

10/28/2019, 8:25 AM
Be careful here. NPM or Yarn extensions which require compilation will break if you don't have the same target on your final image. Also, the image size is so big because of Node, NPM, and Yarn 🙂
s

stocky-spoon-28903

10/28/2019, 9:34 AM
In particular the pulumi SDK itself uses GRPC which has a native component (in the variant used)
e

early-intern-90238

10/28/2019, 5:46 PM
Sure but you could use multistage containers to slim this down significantly. I found an alternative that I am trying out before I go down this path...
s

stocky-spoon-28903

10/30/2019, 1:46 PM
Another approach you can use is our (new)
action-install-pulumi-cli
then
setup-node
to run this in a non-docker environment
q

quiet-wolf-18467

10/30/2019, 1:47 PM
Is there docs on this?
s

stocky-spoon-28903

10/30/2019, 2:03 PM
Not yet - I only pushed them an hour ago 🙂
https://github.com/pulumi/action-install-pulumi-cli has an example usage in the README though
2 Views