Tribler/docker-tribler-prod

Name: docker-tribler-prod

Owner: Tribler

Description: Docker image for running Tribler in production.

Created: 2017-06-09 14:13:23.0

Updated: 2017-12-24 06:48:35.0

Pushed: 2017-06-22 22:52:06.0

Homepage: https://hub.docker.com/r/tribler/docker-tribler-prod/

Size: 16

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Production docker image

This docker image is meant to make it easier to run Tribler by encapsulating all the dependencies in a docker container.

How to use

Currently this docker image only works on linux/unix machines, because of the way the gui is passed to the host's x server

To make use of this image, you first need to pull this image from docker hub:

er pull tribler/docker-tribler-prod

Or build it yourself by building from this repository: (For more options, see the building section below)

clone https://github.com/Tribler/docker-tribler-prod.git
er build -t tribler/docker-tribler-prod docker-tribler-prod

When the image is pulled or built, it can be run by executing this command: (For more options, see the running section below)

er run -it \
tmp/.X11-unix:/tmp/.X11-unix \ # Display
ISPLAY=unix$DISPLAY \          # Display
vice /dev/snd \                # Sound
HOME/.Tribler:/home/tribler/.Tribler \ # State folder
HOME/Downloads:/home/tribler/TriblerDownloads \ # Download folder
me tribler \
ler/docker-tribler-prod

After closing the Tribler application, it can be started again by running:

er start tribler

To remove the container run:

er rm tribler
Running options
Host networking (-net host)

The host networking options puts the container on the same networking bridge as the computer instead of being behind a shielded network. This option can help when you're having network connectivity problems.

er run -it \
tmp/.X11-unix:/tmp/.X11-unix \ # Display
ISPLAY=unix$DISPLAY \          # Display
vice /dev/snd \                # Sound
t host                         # Networking
HOME/.Tribler:/home/tribler/.Tribler \ # State folder
HOME/Downloads:/home/tribler/TriblerDownloads \ # Download folder
me tribler \
ler/docker-tribler-prod
CPU restrictions (-ccpuset-cpus)

The cpu restriction option lets you decide how much cpu power the container may use. In more technical terms it lets you decide which cpu core/thread the program can use.

er run -it \
tmp/.X11-unix:/tmp/.X11-unix \ # Display
ISPLAY=unix$DISPLAY \          # Display
vice /dev/snd \                # Sound
uset-cpus 0 \                  # CPU restriction
HOME/.Tribler:/home/tribler/.Tribler \ # State folder
HOME/Downloads:/home/tribler/TriblerDownloads \ # Download folder
me tribler \
ler/docker-tribler-prod
Memory restrictions (–memory)

The memory restriction option lets you decide how much memory space the container may use.

er run -it \
tmp/.X11-unix:/tmp/.X11-unix \ # Display
ISPLAY=unix$DISPLAY \          # Display
vice /dev/snd \                # Sound
mory 512mb \                   # Memory restriction
HOME/.Tribler:/home/tribler/.Tribler \ # State folder
HOME/Downloads:/home/tribler/TriblerDownloads \ # Download folder
me tribler \
ler/docker-tribler-prod
Building options
REPO_URL (Default: https://github.com/Tribler/tribler.git)

The REPO_URL env variable lets you change the repository url of code that the image is going to pull. This can be used for packaging forks of tribler.

er build -t tribler/docker-tribler-prod \
EPO_URL=<url of code repository> \
er-tribler-prod
VERSION (Default: next)

The VERSION env variable lets you change the specific version that is built during the packaging. This is handled by changing the branch of the repository. So in this way branches and tags can be selected.

er build -t tribler/docker-tribler-prod \
ERSION=<version> \
er-tribler-prod

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.