Introduction

Treelets is an application for dependency-based extraction and exploration of phraseology.

Learning Outcomes

By the end of this tutorial you will

Any issues with this tutorial should be reported to the contact[at]pelcra.pl list.

Table of Contents

Requirements

Install Treelets on Ubuntu

Install Docker on Ubuntu

sudo apt install docker 
sudo apt install docker-compose 
sudo apt install postgresql-client-common
sudo docker -v 
sudo docker-compose -v

Setup Treelets from a binary distribution

Run Docker

# Build
sudo docker-compose build
        
# Running
sudo docker-compose up -d
        
# View instances
sudo docker-compose ps

Install Treelets on Windows 10 Home

Install Docker Toolbox

Setup Treelets from a binary distribution

Run Docker

# get default ip for application
docker-machine ip default
# change webSocketHost address to docker-machine ip default eg.
"webSocketHost": "ws://192.168.99.100:4221/notifications"
# create a volume
docker volume create postgres_database

# check volumes
docker volume ls

# Build
docker-compose build
        
# Running
docker-compose up -d
        
# View instances
docker-compose ps

Verify your Treelets installation

Docker useful commands

# View instances with container id
sudo docker ps
        
# Logs
sudo docker-compose logs

# Monitoring
sudo docker stats

# Connect sql command
sudo docker exec -it {container_id} sh
psql -U treelets treelets
select * from info.config;
select version();
\q
exit
        
# Stop
sudo docker-compose stop
        
# Remove
sudo docker-compose down