fix: Se actualiza version en ES
This commit is contained in:
parent
4c1b5380df
commit
5250610be1
155
README_es.md
155
README_es.md
|
@ -51,107 +51,84 @@ Clone repository:
|
||||||
git clone https://git.disroot.org/OneTeam/oc-docker-tryton-non-official.git
|
git clone https://git.disroot.org/OneTeam/oc-docker-tryton-non-official.git
|
||||||
cd oc-docker-tryton-non-official
|
cd oc-docker-tryton-non-official
|
||||||
```
|
```
|
||||||
Edit Dockerfile and change lines commented example create Docker OneTeam:
|
Edíte el archivo Dockerfile y cambie el valor de las variables, ejemplo para Crear un Docker de OneTeam:
|
||||||
|
|
||||||
```
|
```
|
||||||
#version Trytond server example 5.0
|
#version Trytond server example 6.0
|
||||||
FROM tryton/tryton:6.0
|
TRYTOND_VERSION=6.6
|
||||||
#lebel custom
|
#python version that will run the docker example 3.7 or 3.9 is mandatory in case you use tryton6.2
|
||||||
LABEL org.label-schema.version="6.0-my-one_team"
|
PYTHON_VERSION=3.9
|
||||||
#version equal Tryond server version
|
|
||||||
ENV TRYTOND_VERSION="6.0"
|
|
||||||
#python version that will run the dockeri, e.g. python3.7
|
|
||||||
ENV PYTHON_VERSION="python3.7"
|
|
||||||
#version equal Tryond server version
|
|
||||||
ENV GITEA_ORG="OneTeam"
|
|
||||||
#domain server gitea
|
|
||||||
ENV GITEA_DOMAIN="git.disroot.org"
|
|
||||||
#if the module repository is private
|
#if the module repository is private
|
||||||
ENV GITEA_USER="my-user"
|
GITEA_USER=gitea_user
|
||||||
ENV GITEA_PASSWORD="my-password"
|
GITEA_PASSWORD=gitea_password
|
||||||
ENV GITEA_ACCESS_TOKEN="45454515415465456456"
|
GITEA_ACCESS_TOKEN=gitea_user_token
|
||||||
#By default all organizations are set to false, activate only one as true.
|
#Repository Multi Migrate
|
||||||
ENV GnuHealth="False"
|
REPO_MULTI_MIGRATE=OneTeam/oc-multi_migrate_to_gitea.git
|
||||||
ENV Etrivial="False"
|
#domain server gitea
|
||||||
ENV Trytonar="False"
|
GITEA_DOMAIN=git.disroot.org
|
||||||
ENV OneTeam="True"
|
URL_MULTI_MIGRATE=https://${GITEA_USER}:${GITEA_PASSWORD}@${GITEA_DOMAIN}/OneTeam/oc-multi_migrate_to_gitea.git
|
||||||
ENV Presik="False"
|
#By default all organizations are set to false, activate only one.
|
||||||
ENV Datalife="False"
|
#GnuHealth, Etrivial, tryton-ar, OneTeam, OneTeam_Pos, Presik, Datalife, NaNtic, Kalenis
|
||||||
ENV NaNtic="False"
|
Provider=OneTeam
|
||||||
ENV Kalenis="False"
|
DIR_MODULES=/usr/local/lib/python${PYTHON_VERSION}/dist-packages/trytond/modules
|
||||||
```
|
DB_PASSWORD=SUp3r-pass*DB
|
||||||
# Usage
|
POSTGRES_DB=tryton
|
||||||
```
|
DB_HOSTNAME=db
|
||||||
docker build -t tryton/label .
|
POSTGRES_PASSWORD=SUp3r-pass*DB
|
||||||
```
|
TRYTON_PORT=8000
|
||||||
**Note: in case of than you need rebuild your docker image from the beginning, we will have add the option '--no-cache'**
|
DEVELOP=True
|
||||||
|
WORKER=True
|
||||||
Create a network of work for docker:
|
TRYTONPASSFILE=/etc/trytond_admin_pass.conf
|
||||||
```
|
#Password user admin
|
||||||
docker network create name_network
|
TRYTONADMINPASS=admin
|
||||||
```
|
#Email user admin
|
||||||
Create a volumen of storage for docker:
|
EMAIL=admin@admin.com
|
||||||
|
SLEEP_TRYTOND_ADMIN=15
|
||||||
|
#SMTP
|
||||||
```
|
#This value is True or False
|
||||||
docker volume create name_volume
|
SMTP=False
|
||||||
```
|
SMTP_TYPE=smtps+ssl
|
||||||
Export of variable of environment with password for our postgres, it is with the purpose of don't have to write many time the password
|
SMTP_USER=
|
||||||
|
SMTP_PASSWORD=
|
||||||
|
SMTP_DOMAIN=
|
||||||
```
|
SMTP_PORT=465
|
||||||
export POSTGRES_PASSWORD="password"
|
SMTP_FROM=NAME_FROM <mail>
|
||||||
|
SMTP_EMAIL=
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a postgres docker image
|
# Uso.
|
||||||
|
|
||||||
|
Construyendo un perfíl.
|
||||||
|
**Nota: En caso de que necesite reconstruir una imagen de docker desde el inicio , agregaremos la opción '--no-cache'**
|
||||||
```
|
```
|
||||||
docker run \
|
docker-compose -p <profile_name> build --no-cache --progress plain
|
||||||
--name name_docker_postgres \
|
|
||||||
--env PGDATA=/var/lib/postgresql/data/pgdata\
|
|
||||||
--env POSTGRES_DB=name_database\
|
|
||||||
--env POSTGRES_PASSWORD=${POSTGRES_PASSWORD}\
|
|
||||||
--mount source=name_volume,target=/var/lib/postgresql/data\
|
|
||||||
--network name_network\
|
|
||||||
--detach\
|
|
||||||
postgres
|
|
||||||
|
|
||||||
```
|
|
||||||
Create a database in our docker postgres image
|
|
||||||
|
|
||||||
```
|
|
||||||
docker exec --user postgres name_docker_postgres createdb name_database
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
fill the database with data
|
Construir un proyecto utilizando el perfíl construido anteriormente.
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run \
|
docker-compose -p <profile_name> up -d
|
||||||
--env DB_HOSTNAME=name_docker_postgres\
|
|
||||||
--env DB_PASSWORD=${POSTGRES_PASSWORD}\
|
|
||||||
--network name_network\
|
|
||||||
--interactive\
|
|
||||||
--tty\
|
|
||||||
--rm\
|
|
||||||
tryton/label\
|
|
||||||
trytond-admin -d name_database -vv --all
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Run docker image with our tryton
|
# Comandos Básicos.
|
||||||
|
|
||||||
|
Ingresar al bash del docker de Tryton.
|
||||||
|
**Nota: 'tryton' es el nombre del servicio asignado en docker-compose.yml para el docker de tryton,
|
||||||
|
'/entrypoint.sh' es importante si se desea entrar cargando las variables de entorno,
|
||||||
|
'--user' especifica el nombre del usuario con el que se desea ingresar.**
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run\
|
docker-compose -p <profile_name> exec --user root tryton /entrypoint.sh bash
|
||||||
--name name_docker_tryton\
|
|
||||||
--env DB_HOSTNAME=name_docker_postgres\
|
|
||||||
--env DB_PASSWORD=${POSTGRES_PASSWORD}\
|
|
||||||
--network name_network\
|
|
||||||
--publish 127.0.0.1:8000:8000\
|
|
||||||
--detach\
|
|
||||||
tryton/label
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This guide refer to https://discuss.tryton.org/t/how-to-run-tryton-using-docker/3200,
|
Actualizar listado de Modúlos de una base de datos.
|
||||||
in case of any question it is recommended read https://docs.docker.com/get-started/
|
```
|
||||||
|
docker-compose -p <profile_name> exec --user root tryton /entrypoint.sh trytond-admin -c /etc/trytond.conf -d <database> -vv -m --all
|
||||||
|
```
|
||||||
|
|
||||||
|
Ingresar a la consola de postgres
|
||||||
|
```
|
||||||
|
docker-compose -p <profile_name> exec --user postgres db psql
|
||||||
|
```
|
||||||
|
|
||||||
|
Al inicio se tomo de referencia https://discuss.tryton.org/t/how-to-run-tryton-using-docker/3200,
|
||||||
|
puede tomar de refencia https://docs.docker.com/get-started/
|
||||||
|
|
Loading…
Reference in New Issue