Skip to content

Instantly share code, notes, and snippets.

@alfmatos
Last active June 6, 2019 17:58
Show Gist options
  • Save alfmatos/f0a5218c80e4866da1beb90cffb008f9 to your computer and use it in GitHub Desktop.
Save alfmatos/f0a5218c80e4866da1beb90cffb008f9 to your computer and use it in GitHub Desktop.
Docker nodejs and yarn install (for bitbucket pipelines)
#!/bin/bash
# Script to install node.js 10.x and yarn repo onto a Debian or Ubuntu system (docker)
#
# Run as root or insert `sudo -E` before `bash`:
#
# Example: curl -sL https://gist.githubusercontent.com/alfmatos/f0a5218c80e4866da1beb90cffb008f9/raw/ | bash -
# Install nodejs 10.x
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
# Install yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment