https://pulumi.com logo
b

best-xylophone-83824

08/06/2019, 2:56 PM
People, how do you run pulumi in CI/CD? Examples given in docs are unpractical, no way I am installing nodejs and rebuilding node-grpc on every pulumi run 🙂
w

white-balloon-205

08/06/2019, 3:01 PM
Node-grpc should not have to build on every run. What version/platform are you seeing that for? If use use an LTS, you should get pre-built binaries.
More broadly - I’m surprised this is adding a non-trivial amount of time to your build. It is definitely standard practice for Pulumi and for Node more generally to run npm install in CI. If this is taking more than ~30 seconds, something else seems like it’s probably wrong.
b

best-xylophone-83824

08/06/2019, 3:23 PM
Recommended script in docs installs everything including node. If we use docker pulumi/pulimi image, then you can see for yourself, it is much more than 30 seconds:
Copy code
docker run -it  -e PULUMI_ACCESS_TOKEN=XXX --rm -v $(p
wd):/code -w /code --entrypoint= pulumi/pulumi  /bin/sh -c 'update-ca-certificates; npm config --global 
set cafile /etc/ssl/certs/ca-certificates.crt && exec pulumi new gcp-typescript --name gcp-bootstrap --description "Toplevel GCP projects setup" --force --dir ooo'
w

white-balloon-205

08/06/2019, 4:21 PM
Which script in particular are you referring to?