Merge pull request #1282 from pulumi/etc-hosts

Add static entries for Pulumi backends to /etc/hosts
This commit is contained in:
Matthew Riley 2018-04-29 14:54:46 -07:00 committed by GitHub
commit 8ea6b24e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,9 @@ export PULUMI_SDK="$(go env GOPATH)/src/github.com/pulumi/sdk"
if [ ! -z "${NPM_TOKEN:-}" ]; then
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
fi
# Put static entries for Pulumi backends in /etc/hosts
"${PULUMI_HOME}/scripts/pulumi-hosts" | sudo tee -a /etc/hosts
) || exit 1 # Abort outer script if subshell fails.
export PULUMI_ROOT=/opt/pulumi