Skip to content

Contains scripts and configuration files for contriboard installation with docker-compose

License

Notifications You must be signed in to change notification settings

N4SJAMK/contriboard-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contriboard-compose

Contains scripts and configuration files for contriboard installation with docker-compose

HOWTO Ubuntu 14.04

Install docker

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c "echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install -y docker-engine

Install make if not already installed

sudo apt-get install make

Install pip if not already installed

sudo easy_install -U pip
# Install python-setuptools if you do not have easy_install installed

Install docker-compose

sudo pip install docker-compose

Optional step If you want improved auto complete for docker-compose run the following command

sudo apt-get install curl
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/1.2.0/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"

Clone the contriboard-compose repository

git clone https://github.com/N4SJAMK/contriboard-compose.git
cd contriboard-compose
make clone

Run docker-compose. At the first time it takes a while to run the command because docker pulls all the necessary images and builds the contriboard images.

# the -d parameter is not necessary but it puts the containers to background
sudo docker-compose up -d

If the docker-compose complains something about requests package version run the following command

sudo pip install requests==2.5.2

Because all the containers are started at the same time the mongo service might not be up at the time when api is trying to connect to it. This results in that api container crashes and does not stay up. If this happens you have to run sudo docker-compose start when mongo container is running. This is something that should be fixed in the future.

important commands:

# show help
docker-compose --help

# show containers
sudo docker-compose ps

# create and start containers
sudo docker-compose up -d

# show logs from containers
sudo docker-compose logs

The make command allows you to specify the user whose repository is cloned. This is useful if you want to clone your own fork. Note that you have to have forked the repository before the command works.

make clone USER=your_github_account

You can clone over ssh if you want. By default the command clones the repository over https.

make clone SSH=true

Other commands:

# run git pull in each of the repositories
make pull

# remove all the cloned repositories
make clean

About

Contains scripts and configuration files for contriboard installation with docker-compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published