Go to file
Sergio Morillo 73da309768 Added postgres version to env 2023-09-27 18:35:40 +02:00
6.0 Do not install trytond in base image 2023-09-14 18:50:37 +02:00
6.4 Do not install trytond in base image 2023-09-14 18:50:37 +02:00
fonts Add barcode font 3OF9 2021-07-22 13:39:46 +02:00
sql_init_scripts Re-structure project to simplify migration among versions 2021-07-16 13:00:59 +02:00
.dockerignore Add .dockerignore file 2021-07-28 13:53:29 +02:00
.env.sample Added postgres version to env 2023-09-27 18:35:40 +02:00
README.md Re-structure project to simplify migration among versions 2021-07-16 13:00:59 +02:00
docker-compose.yml.sample Added postgres version to env 2023-09-27 18:35:40 +02:00
init-letsencrypt.sh Fix rsa key size for dummy certificate 2023-01-30 12:12:08 +01:00
nginx.conf.sample Define editable files as .sample 2021-10-29 20:06:16 +02:00
start.sh Re-structure project to simplify migration among versions 2021-07-16 13:00:59 +02:00

README.md

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

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