From ca2d115e22d353a7247a54b36f4c823c1b24e884 Mon Sep 17 00:00:00 2001 From: "Jovany Leandro G.C bit4bit@riseup.net" Date: Mon, 14 Aug 2023 21:15:53 -0500 Subject: [PATCH] chore: se adiciona cliente sao 6.8 fixes #33 --- .dev/trytond.cfg | 3 ++- CONTRIBUIR.md | 3 ++- Dockerfile | 12 ++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.dev/trytond.cfg b/.dev/trytond.cfg index 0a11794..c30c741 100644 --- a/.dev/trytond.cfg +++ b/.dev/trytond.cfg @@ -1,2 +1,3 @@ [web] -listen = 0.0.0.0:8000 \ No newline at end of file +listen = 0.0.0.0:8000 +root=/var/lib/trytond/www \ No newline at end of file diff --git a/CONTRIBUIR.md b/CONTRIBUIR.md index 1644c54..f39bb99 100644 --- a/CONTRIBUIR.md +++ b/CONTRIBUIR.md @@ -23,7 +23,8 @@ 1. iniciar entorno `rake live:up` 2. conectar cliente tryton a `localhost:8000` usuario: `admin` y clave: `admin` - 1. si desea ver la salida de trytond usar `rake live:tail` + 1. o bien usar cliente web via `http://localhost:8000` + 2. si desea ver la salida de trytond usar `rake live:tail` 3. detener entorno `rake live:down` ### consideraciones diff --git a/Dockerfile b/Dockerfile index b4f3e73..c802e72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,16 @@ +# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile +FROM node as builder-node + +ENV SERIES 6.8 +RUN npm install -g bower +RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C / +RUN cd /package && bower install --allow-root + FROM python:3.9-bullseye # trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore` RUN apt-get update && apt-get install -y postgresql-client + +# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile +COPY --from=builder-node /package /var/lib/trytond/www +