Last active
June 6, 2019 17:58
-
-
Save alfmatos/f0a5218c80e4866da1beb90cffb008f9 to your computer and use it in GitHub Desktop.
Docker nodejs and yarn install (for bitbucket pipelines)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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