sinergia 32a02b5306 | ||
---|---|---|
5.0 | ||
6.0 | ||
6.2 | ||
6.4 | ||
6.6 | ||
6.8 | ||
.env_datalife | ||
.env_gnuhealth | ||
.env_kalenis | ||
.env_nantic | ||
.env_oneteam | ||
.env_sample | ||
.env_trytonar | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
README_es.md | ||
diagram.png | ||
docker-compose.yml | ||
entrypoint.sh | ||
nginx.conf | ||
start.sh | ||
trytond-modules_non_official.sh | ||
trytond.conf | ||
trytond_cron_logging.conf | ||
trytond_logging.conf | ||
trytond_worker_logging.conf | ||
uwsgi.conf |
README.md
Description
Docker tryton-non_official It is a tool for deploying unofficial Tryton modules in Docker, including:
- Gnuhealth
- Kalenis
- NaNtic
- Datalife
- Presik
- Trytonar
- OneTeam
- Etrivial
Gnuhealth and Etrivial most be work whit tryton5.0
Dependencies:
Have docker 20 or higher installed and git
Multi migrate to gitea will be called at the time of the creation of the docker
Prerequisites
If you going to use tryton 6.2, must be use python3.9. This change was done by team tryton.
Clone repository:
git clone https://git.disroot.org/OneTeam/oc-docker-tryton-non-official.git
cd oc-docker-tryton-non-official
Edit Dockerfile and change lines commented example create Docker OneTeam:
#version Trytond server example 6.0
TRYTOND_VERSION=6.6
#python version that will run the docker example 3.7 or 3.9 is mandatory in case you use tryton6.2
PYTHON_VERSION=3.9
#if the module repository is private
GITEA_USER=gitea_user
GITEA_PASSWORD=gitea_password
GITEA_ACCESS_TOKEN=gitea_user_token
#Repository Multi Migrate
REPO_MULTI_MIGRATE=OneTeam/oc-multi_migrate_to_gitea.git
#domain server gitea
GITEA_DOMAIN=git.disroot.org
URL_MULTI_MIGRATE=https://${GITEA_USER}:${GITEA_PASSWORD}@${GITEA_DOMAIN}/OneTeam/oc-multi_migrate_to_gitea.git
#By default all organizations are set to false, activate only one.
#GnuHealth, Etrivial, tryton-ar, OneTeam, OneTeam_Pos, Presik, Datalife, NaNtic, Kalenis
Provider=OneTeam
DIR_MODULES=/usr/local/lib/python${PYTHON_VERSION}/dist-packages/trytond/modules
DB_PASSWORD=SUp3r-pass*DB
POSTGRES_DB=tryton
DB_HOSTNAME=db
POSTGRES_PASSWORD=SUp3r-pass*DB
TRYTON_PORT=8000
DEVELOP=True
WORKER=True
TRYTONPASSFILE=/etc/trytond_admin_pass.conf
#Password user admin
TRYTONADMINPASS=admin
#Email user admin
EMAIL=admin@admin.com
SLEEP_TRYTOND_ADMIN=15
#SMTP
#This value is True or False
SMTP=False
SMTP_TYPE=smtps+ssl
SMTP_USER=
SMTP_PASSWORD=
SMTP_DOMAIN=
SMTP_PORT=465
SMTP_FROM=NAME_FROM <mail>
SMTP_EMAIL=
Usage
Building a profil. Note: in case of than you need rebuild your docker image from the beginning, we will have add the option '--no-cache'
docker-compose -p <profile_name> build --no-cache --progress plain
Create a project with the previous profile built
docker-compose -p <profile_name> up -d
Bassic Commands.
Enter tryton docker service bash. **Note: 'tryton' is the name assigned into docker-compose.yml for th docker service of tryton, '/entrypoint.sh' it is import for load environment variables, '--user' specifies the user. **
docker-compose -p <profile_name> exec --user root tryton /entrypoint.sh bash
Update list of modules
docker-compose -p <profile_name> exec --user root tryton /entrypoint.sh trytond-admin -c /etc/trytond.conf -d <database> -vv -m --all
Enter postgres docker service psql.
docker-compose -p <profile_name> exec --user postgres db psql