Skip to content

Instantly share code, notes, and snippets.

@xluffy
Last active May 8, 2016 06:25
Show Gist options
  • Save xluffy/c266f0412f2fa6488187 to your computer and use it in GitHub Desktop.
Save xluffy/c266f0412f2fa6488187 to your computer and use it in GitHub Desktop.
taiga.io install on ubuntu 12.04
#!/bin/bash
# Ref: http://taigaio.github.io/taiga-doc/dist/setup-production.html
## 1. Intro
# The Taiga platform consists of three main components:
# - taiga-back (backend/api)
# - taiga-front (frontend)
# - taiga-events (websockets gateway) (optional)
# Each component can run on one unique machine or each can be installed in a different machine. \
# In this tutorial we will setup everything in one single machine. This type of setup should suffce\
# should for small/medium production environments
## 2. Before starting
# Ip: 10.x.x.
# Hostname: taiga.gist.io
# User: taiga
sudo sed -i 's/us.archive.ubuntu.com/mirror-fpt-telecom.fpt.net/g' /etc/apt/sources.list
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
## 3. Backend installation (This section helps with the installation of the backend (api) Taiga service)
### 3.1 Install dependencies
### The Backend is written mainly in python (3.4) but for some third party libraries we need to install\
### a C compiller and development headers
sudo apt-get install -y build-essential binutils-doc autoconf flex bison libjpeg-dev
sudo apt-get install -y libfreetype6-dev zlib1g libzmq-dev libgdbm-dev libncurses5-dev
sudo apt-get install -y automake libtool libffi-dev curl git tmux
### 3.2 Setup a database
### taiga-back also requires postgresql (>= 9.3) as a database
sudo apt-get install -y postgresql-9.3 postgresql-contrib-9.3
sudo apt-get install -y postgresql-doc-9.3 postgresql-server-dev-9.3
sudo -u postgres createuser taiga
sudo -u postgres createdb taiga -O taiga
### 3.3 Setup python environment
# For run taiga-back you should have python (3.4) installed with some other third party libraries. \
# As a first step, start installing python and virtualenvwrapper:
sudo apt-get install python3.4 python3.4-dev
sudo apt-get install -y python3 python-dev python3-dev python-pip virtualenvwrapper
sudo apt-get install python3-setuptools
sudo easy_install3 pip
## Restart the shell or run bash again, to reload the bash environment with virtualenvwrapper \
# variables and functions
##*** System restart required ***
sudo reboot
cd ~
git clone https://github.com/taigaio/taiga-back.git taiga-back
cd taiga-back
git checkout stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment