Skip to content

Docker setup notes

phlax edited this page Apr 13, 2018 · 20 revisions

Installing Pootle on debian 9 (stretch) with docker

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 | sudo 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 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
cd
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