Skip to content

Instantly share code, notes, and snippets.

@wjordan
Last active June 25, 2019 14:50
Show Gist options
  • Save wjordan/d77c47f2a272d7c9dbf6 to your computer and use it in GitHub Desktop.
Save wjordan/d77c47f2a272d7c9dbf6 to your computer and use it in GitHub Desktop.
cdo-install.sh
#!/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