#!/bin/bash

# This is the script that is run inside a new container to set it up at first

set -exuo pipefail
IFS=$'\n\t'

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."

# Install updates and system packages
apt-get update
apt-get install -y build-essential locales software-properties-common
apt-get install -y gcc curl supervisor
apt-get install -y python-minimal python3.7-dev python3.7 python3-setuptools

# Set locale
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen

# Set up python
curl https://bootstrap.pypa.io/get-pip.py | python3.7
pip3 install virtualenvwrapper
pip3 install -r requirements.txt

# Set up node
curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install nodejs
npm install

# Set up supervisor
cp config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

#!/bin/bash

# This is the script that is run inside a new container to set it up at first

set -exuo pipefail
IFS=$'\n\t'

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."

# Install updates and system packages
apt-get update
apt-get install -y build-essential locales software-properties-common
apt-get install -y gcc curl supervisor git
apt-get install -y python-minimal python3.7-dev python3.7 python3-setuptools

# Set locale
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen

# Set up python
curl https://bootstrap.pypa.io/get-pip.py | python3.7
pip3 install virtualenvwrapper
pip3 install -r requirements.txt

# Set up node
curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install nodejs
npm install

# Set up supervisor
cp config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

Install git in order to install python requirements
Install git in order to install python requirements
