Last active
June 25, 2019 14:50
-
-
Save wjordan/d77c47f2a272d7c9dbf6 to your computer and use it in GitHub Desktop.
cdo-install.sh
This file contains 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 | |
# Docker-ubuntu-trusty compatible CDO install script | |
export DEBIAN_FRONTEND=noninteractive | |
apt() { | |
apt-get -qq install $1 &>/dev/null | |
} | |
apt-get update &>/dev/null && apt-get -y upgrade &>/dev/null | |
apt 'software-properties-common git' | |
apt-add-repository -y ppa:brightbox/ruby-ng &>/dev/null | |
bash -c "curl -sL https://deb.nodesource.com/setup | bash - &>/dev/null" | |
apt 'nodejs ruby2.2 ruby2.2-dev' | |
gem install bundler | |
npm update -g npm | |
apt 'build-essential' | |
apt 'libmysqlclient-dev' | |
apt 'imagemagick libmagickcore-dev libmagickwand-dev' | |
cd $HOME | |
git clone --depth 1 --no-single-branch https://github.com/code-dot-org/code-dot-org.git | |
cd code-dot-org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment