From 4d97fbf02d6fc2aedde1d5000be1675931837a13 Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Mon, 21 May 2018 21:00:02 +0200 Subject: update vagrant script [ci skip] --- scripts/vagrant_bootstrap.sh | 121 ++++++++++++++++++------------------------- 1 file changed, 51 insertions(+), 70 deletions(-) (limited to 'scripts') diff --git a/scripts/vagrant_bootstrap.sh b/scripts/vagrant_bootstrap.sh index 307107d4..9839038f 100644 --- a/scripts/vagrant_bootstrap.sh +++ b/scripts/vagrant_bootstrap.sh @@ -1,87 +1,68 @@ #!/bin/bash # Dependencies -apt-get update -apt-get install -y software-properties-common -apt-get install -y python-software-properties -apt-get install -y curl -apt-get install -y apt-transport-https +apt install -y software-properties-common +apt install -y python-software-properties +apt install -y curl + +# Python 3.6 add-apt-repository -y ppa:jonathonf/python-3.6 -echo "deb http://download.rethinkdb.com/apt xenial main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list -wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - -apt-get update -# Python3.6 -apt-get install -y python3.6 -apt-get install -y python3.6-dev -apt-get install -y build-essential +# Rethinkdb +curl -fsSL https://download.rethinkdb.com/apt/pubkey.gpg | apt-key add - +echo "deb http://download.rethinkdb.com/apt xenial main" | tee /etc/apt/sources.list.d/rethinkdb.list + +# Docker +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - +add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + +# Install +apt update +apt install -y apt-transport-https +apt install -y docker-ce +apt install -y rethinkdb +apt install -y python3.6 +apt install -y python3.6-dev +apt install -y build-essential +apt install -y python3-distutils + +# Compose +curl -Ls https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose +chmod +x /usr/local/bin/docker-compose + +# Pip +curl -s https://bootstrap.pypa.io/get-pip.py | python - +curl -s https://bootstrap.pypa.io/get-pip.py | python3 - curl -s https://bootstrap.pypa.io/get-pip.py | python3.6 - -python3.6 -m pip install -r /vagrant/requirements.txt -python3.6 -m pip install -r /vagrant/requirements-ci.txt -python3.6 -m pip install gunicorn -# RethinkDB -apt-get install -y rethinkdb +# Pipenv +python3.6 -m pip install pipenv +# RethinkDB config tee /etc/rethinkdb/instances.d/rethinkdb.conf < /etc/environment <