Go to file
2021-02-16 16:14:02 +01:00
fonts Add fonts 2020-10-26 17:41:00 +01:00
sql_init_scripts Add sql init script to postgres. 2019-04-07 20:28:14 +02:00
.env Fix version. 2020-04-20 23:30:04 +02:00
docker-compose.yml.sample Configure logging on containers 2021-02-16 16:14:02 +01:00
Dockerfile Add fonts 2020-10-26 17:41:00 +01:00
init-letsencrypt.sh Fix download urls on init-letsencrypt.sh 2020-05-22 00:31:05 +02:00
nginx.conf Add default trytond language 2019-09-24 16:08:34 +02:00
README.md Fix version. 2020-04-20 23:30:04 +02:00
repos.cfg Fix version. 2020-04-20 23:30:04 +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 Find tryton_bash container by exact name 2020-10-29 10:51:48 +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.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