Go to file
2020-05-13 11:44:19 +02:00
sql_init_scripts Add sql init script to postgres. 2019-04-07 20:28:14 +02:00
.env Migrate to 5.4 2020-02-24 17:20:59 +01:00
docker-compose.yml.sample Fix postgresql volume path. 2020-05-08 12:05:48 +02:00
Dockerfile Use office image instead of base 2020-05-13 11:44:19 +02:00
init-letsencrypt.sh Add ssl configuration with letsencrypt and cerbot 2019-06-13 10:58:18 +02:00
nginx.conf Add default trytond language 2019-09-24 16:08:34 +02:00
README.md Migrate to 5.4 2020-02-24 17:20:59 +01:00
repos.cfg Migrate to 5.4 2020-02-24 17:20:59 +01: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 Migrate to 5.4 2020-02-24 17:20:59 +01: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.4
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