-
Notifications
You must be signed in to change notification settings - Fork 288
Docker setup notes
Your (virtual) machine should have a minimum of 2GB available memory to run the demo (1GB might be enough for small projects). You will also need a minimum of 5GB available disk space (excluding swap if in a VM).
following this guide: 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
This will improve performance, reclaim disk-space properly, not be weird like aufs, and generally make life easier. If you switch to this driver after install, you will have to dump/load or lose all your images.
Add or edit your /etc/docker/daemon.json
with the following:
{
"storage-driver": "overlay2"
}
and then:
systemctl restart docker
apt install git virtualenv
useradd \
-m \
-d /home/pootle \
-k /etc/skel \
-s /bin/bash \
pootle
gpasswd -a pootle docker
su pootle
mkdir ~/host
cd ~/host
virtualenv .
. bin/activate
(host) git clone https://github.com/translate/pootle
(host) cd pootle
(host) pip install -r requirements/host.txt
At this point you may want to either setup your production pootle site - https://github.com/translate/pootle/wiki/Docker-production-notes, or setup a pootle development environment ...
(host) makey demo