'

Outils pour utilisateurs

Outils du site


doc:cozy_cloud

cozy cloud

Work in progress, won't work as is

installation

postfix doit être installé.

    install_tools()
    install_node08()
    install_couchdb()
    install_postfix()
    create_cozy_user()
    config_couchdb()
    install_monitor()
    install_controller()
    install_indexer()
    install_data_system()
    install_home()
    install_proxy()
    #init_domain()
    create_cert()
    install_nginx()

Paquets

sudo apt-get install python python-setuptools python-pip openssl libssl-dev libxml2-dev libxslt1-dev build-essential git sudo lsb-release supervisor couchdb python-whoosh python-tornado python-weboob-core

nodejs

sudo adduser $USER staff
newgrp staff
cd /usr/local/src
curl http://nodejs.org/dist/v0.8.25/node-v0.8.25.tar.gz | tar zxf -
cd node-v0.8.25
./configure --prefix=/usr/local/node-v0.8 && make -j$(( $(grep cores /proc/cpuinfo | wc -l) - 1 )) && make install

users

FIXME

  • cozy home=False
  • cozy-data-system home=True
  • cozy-home home=True

Node modules

/usr/local/node-v0.8/bin/npm install coffee-script cozy-controller cozy-monitor compound brunch -g

couchdb

sudo mkdir -p /etc/cozy
echo cozy | sudo tee /etc/cozy/couchdb.login
openssl rand -base64 12 | sudo tee -a /etc/cozy/couchdb.login
curl -X PUT http://127.0.0.1:5984/_config/admins/cozy -d '"$(tail -n1 /etc/cozy/couchdb.login)"'

FIXME : permission sur /etc/cozy/couchdb.login

indexer

mkdir -p /usr/local/var/cozy-indexer
cd /usr/local/var/cozy-indexer
git clone git://github.com/mycozycloud/cozy-data-indexer.git
#pip install virtualenv
#cd /usr/local/var/cozy-indexer/cozy-data-indexer
#virtualenv virtualenv
#. virtualenv/bin/activate
#pip install --use-mirrors -r requirements/common.txt

Cozy Controller Application Manager, Daemonize with supervisor

# owner cozy-home
openssl rand -base64 12 | sudo tee /etc/cozy/controller.token
 
cat <<EOF | sudo tee /etc/supervisor/conf.d/cozy-controller.conf
[program:cozy-controller]
autorestart=true
command=/usr/local/node-v0.8/bin/cozy-controller --coffee --useraccounts --permissions 755 --env production --pidsDir /run
redirect_stderr=true
EOF
 
cat <<EOF | sudo tee /etc/supervisor/conf.d/cozy-indexer.conf
[program:cozy-indexer]
autorestart=true
command=/usr/local/var/cozy-indexer/cozy-data-indexer/server.py
redirect_stderr=true
user=cozy
EOF
 
sudo supervisorctl update
sudo supervisorctl status
cozy-controller                  RUNNING    pid 13886, uptime 0:00:17
cozy-indexer                     RUNNING    pid 27207, uptime 0:36:40

Cozy Data System. Daemonize with Haibu

sudo cozy-monitor install data-system
sudo cozy-monitor install home
sudo cozy-monitor install proxy

FIXME erreur lors de l'installation de kontroller ne s'installe pas (il veut une version >= 0.0.9 et 0.0.9-16 ne convient pas :-()

install_home()

install_proxy()

create_cert()

install_nginx()

doc/cozy_cloud.txt · Dernière modification: Le 07/01/2015 à 23:52 (modification externe)