pulumi/scripts/docker-entry.sh
joeduffy d3ed7de33b Use a thin script wrapper for the entrypoint
This adds a package installation step just before calling the
`pulumi` CLI, making it easier to just volume mount a project
without needing to have `npm install`ed its contents yet.
2018-09-30 08:09:57 -07:00

10 lines
300 B
Bash
Executable file

#!/bin/bash
# This is an entrypoint for our Docker image that does some minimal bootstrapping before executing.
# First, lazily install packages if required.
if [ -e package.json ] && [ ! -d node_modules ]; then
npm install
fi
# Now just pass along all arguments to the Pulumi CLI.
pulumi "$@"