Go to file
2019-06-13 10:58:18 +02:00
sql_init_scripts Add sql init script to postgres. 2019-04-07 20:28:14 +02:00
.env Add nginx service. 2019-04-16 16:39:57 +02:00
docker-compose.yml.sample Add ssl configuration with letsencrypt and cerbot 2019-06-13 10:58:18 +02:00
Dockerfile Add ssl configuration with letsencrypt and cerbot 2019-06-13 10:58:18 +02:00
init-letsencrypt.sh Add ssl configuration with letsencrypt and cerbot 2019-06-13 10:58:18 +02:00
nginx.conf Add ssl configuration with letsencrypt and cerbot 2019-06-13 10:58:18 +02:00
README.md Unify docker compose service names in more files. 2019-05-10 17:00:48 +02:00
repos.cfg Extract base image. 2019-04-29 12:07:18 +02:00
requirements.txt Extract base image. 2019-04-29 12:07:18 +02:00
start.sh Change permissions to scripts 2019-04-11 13:05:36 +02:00
tryton_bash.sh Unify docker compose service names in more files. 2019-05-10 17:00:48 +02:00

Docker to build a custom Tryton Server image

How to use this repo

Configure environment variables

Complete .env file with backend user and password info.

Complete repos.cfg modules file

Add sections to configparser file called "repos.cfg" with the desired Tryton modules.

[DEFAULT]
branch = 5.0
repo = hg

[country]
url = http://hg.tryton.org/modules/country
path = core_modules

Copy id_rsa*

Copy in root path your files id_rsa and id_rsa.pub for using in container

Complete requirements.txt

Add your additional package dependencies

Customize your docker-compose.yml

Copy the compose file sample and modify if proceed the services (trytond with uwsgi+nginx, cron, worker, ...)

cp docker-compose.yml.sample docker-compose.yml

Build image and run containers

./start.sh

Clone repositories

docker exec -it tryton bash -c "invoke scm.clone; invoke scm.create-links"

Update module repositories on container

./tryton_bash.sh
invoke scm.pull -r country
trytond-admin -d <database> -u country -v