install gcloud and yarn

pull/1/head
Jeffrey Paul 5 years ago
parent 905c10593f
commit 3cf9ece5c2
  1. 11
      provision.workbox/main.sh
  2. 1
      provision.workbox/user-setup.sh

@ -13,6 +13,17 @@ fi
pip3 install --upgrade pip
# install gcloud
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" |
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg |
apt-key add -
# Update the package list and install the Cloud SDK
apt-get update && apt-get install -y google-cloud-sdk
# install docker-machine
URLBASE="https://github.com/docker/machine/releases/download/v0.14.0"
URL="$URLBASE/docker-machine-$(uname -s)-$(uname -m)"

@ -9,6 +9,7 @@ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | b
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
nvm install node
npm install -g yarn
if [[ ! -d ~/.ssh ]]; then
mkdir -p ~/.ssh

Loading…
Cancel
Save