Skip to content

Docker setup notes

phlax edited this page Apr 13, 2018 · 20 revisions

Installing Pootle on debian 9 (stretch) with docker

Minimum memory

Your (virtual) machine should have a minimum of 2GB available memory to run the demo. You will also need a minimum of 5GB available disk space (excluding swap if in a vm).

Install latest docker engine

following guide here https://docs.docker.com/install/linux/docker-ce/debian/

apt-get update
apt-get install \
     apt-transport-https \
     ca-certificates \
     curl \
     gnupg2 \
     software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"
apt-get update
apt-get install docker-ce

Install virtualenv

apt install git python-virtualenv

Add a pootle group/user

groupadd -r pootle
useradd \
    -m \
    -d /home/pootle \
    -k /etc/skel \
    -s /bin/bash \
    -g pootle \
  pootle

Add pootle to docker group

gpasswd -a pootle docker

Create and activate the virtualenv

su pootle
mkdir ~/pootle_env
cd ~/pootle_env
virtualenv .
. bin/activate

Clone the pootle repo

git clone https://github.com/translate/pootle

Install host dependencies

cd pootle
pip install -r requirements/host.txt

Run the Pootle demo!

makey demo
Clone this wiki locally