Skip to content

Instantly share code, notes, and snippets.

@ssplatt
Last active May 2, 2018 08:06
Show Gist options
  • Save ssplatt/42393b7d9c876a027aaa to your computer and use it in GitHub Desktop.
Save ssplatt/42393b7d9c876a027aaa to your computer and use it in GitHub Desktop.
Taiga.io install commands for Fedora
==== Fedora 21+ required ====
==== use in conjunction with http://taigaio.github.io/taiga-doc/dist/setup-production.html ====
yum install -y gcc autoconf flex bison libjpeg-turbo-devel
yum install -y freetype-devel zlib-devel zeromq-devel gdbm-devel ncurses-devel
yum install -y automake libtool libffi-devel curl git tmux
yum install -y postgresql postgresql-contrib
yum install -y postgresql-docs postgresql-devel postgresql-server
postgresql-setup initdb
systemctl enable postgresql
systemctl start postgresql
su - postgres -c "createuser taiga"
su - postgres -c "createdb taiga -O taiga"
yum install -y python3 python3-pip python-dev python3-dev python-pip python-virtualenvwrapper python3-virtualenv python3-pip
yum install -y libxml2-devel libxslt-devel
su - taiga
cd ~
git clone https://github.com/taigaio/taiga-back.git taiga-back
cd taiga-back
git checkout stable
mkvirtualenv -p /usr/bin/python3.4 taiga
pip install -r requirements.txt
python manage.py migrate --noinput
python manage.py loaddata initial_user
python manage.py loaddata initial_project_templates
python manage.py loaddata initial_role
python manage.py collectstatic --noinput
pip2 install circus
vim /usr/lib/systemd/system/circus.service
systemctl enable circus
systemctl start circus
==== ssl ====
yum install -y nginx crypto-utils
systemctl enable nginx
genkey <fqdn>
==== async tasks ====
yum install -y rabbitmq-server redis
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
==== events ====
yum install -y rabbitmq-server
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
rabbitmqctl add_user taiga PASSWORD
rabbitmqctl add_vhost taiga
rabbitmqctl set_permissions -p taiga taiga ".*" ".*" ".*"
su - taiga
cd ~
git clone https://github.com/taigaio/taiga-events.git taiga-events
cd taiga-events
yum install npm
su - taiga -c "npm install"
npm install -g coffee-script
@ssplatt
Copy link
Author

ssplatt commented Jun 23, 2015

@rjwestman using Fedora 21, not CentOS 7. Also note that Taiga requires Postgres >= 9.3, which is not in CentOS 7 (http://taigaio.github.io/taiga-doc/dist/setup-production.html)

@alexhochreiter
Copy link

Fedora 22:
Line 18: It should be python-devel python3-devel instead of python-dev python3-dev.
Also Fedora now uses dnf instead of yum (which just prints a warning).
Line 21: "su - taiga" without a previous "adduser taiga" ? ;)
Line 38 results in:
OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/certifi-2015.04.28.dist-info'
su -c "pip2 install circus" workes around this, but i guess this is against the "never built & run taiga as root"-rule.
Line 40: "systemctl --system daemon-reload" Should be called afterwards. if anyone else had no idea what to put in that file: http://circus.readthedocs.org/en/latest/for-ops/deployment/

[Unit]
Description=Circus process manager
After=syslog.target network.target nss-lookup.target

[Service]
Type=simple
ExecReload=/usr/bin/circusctl reload
ExecStart=/usr/bin/circusd /etc/circus/circus.ini
Restart=always
RestartSec=5

[Install]
WantedBy=default.target

@alberto-chiesa
Copy link

You can install PostgreSQL 9.4 even on CentOS 7, you just must add the PostgreSQL official yum repository, as for this link: https://wiki.postgresql.org/wiki/YUM_Installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment