The XiVO Centralized Interface (XCI) requires :

  • A Linux server with PostgreSQL, Docker and Docker-Compose installed
  • Some XiVOs to manage !

Automated installation

An installation script is provided to execute all the installations tasks. To run it, execute the following command :

curl | sudo bash

It will ask you a passphrase for generating an SSH key.

The configuration files are located in /etc/docker.

Run the application

Optionally, you can set a bash alias for conveniently run XCI :

alias dcomp='docker-compose -p icdu -f /etc/docker/compose/icdu.yml'

Then simply :

dcomp up -d

XCI should now be accessible through http://my-server-ip:9001

Manual installation

The configuration files and the Docker-Compose files are available in a specific Git repository.

Database setup

XCI stores some data in a PostgreSQL database. By default, application.conf is configured to connect to a local database named icx with the username icx and password icx. You can change these parameters if you wish. We will use the default parameters in this documentation.

First, we need to install PostgresSQL extensions to use UUID functions :

sudo apt-get install postgresql-contrib

We can now create the user and the database associated :

sudo -u postgres psql -c "CREATE USER icx WITH PASSWORD 'icx'"
sudo -u postgres psql -c "CREATE DATABASE icx WITH OWNER icx"

We then have to enable UUID extension on the icx database. Connect as root on the icx database :

sudo -u postgres psql icx -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'

I can’t connect to PostgreSQL

It is possible that PostgreSQL complains when you’re trying to connect. The solution is to modify the pg_hba.conf (in Debian, located in /etc/postgresql/X.X/main) and add the following line at the end :

local   all     all     trust

Generate SSH key

In order to let XCI communicate with the various XiVOs, an SSH key is used. Generate one using the following command :

ssh-keygen -t rsa -f /etc/docker/interface-centralisee/ssh_key