Feat: Se agrega PUDB
This commit is contained in:
parent
9f0bb915f4
commit
a1b947f852
@ -7,7 +7,7 @@
|
|||||||
[ ! -d "$SRC" ] && die "no se ubica ruta en SRC"
|
[ ! -d "$SRC" ] && die "no se ubica ruta en SRC"
|
||||||
|
|
||||||
# dependencias minimas
|
# dependencias minimas
|
||||||
pip3 install psycopg2 proteus==${TRYTOND_VERSION} inotify honcho qrcode==6.1 pyshp==2.3.1 shapely==2.0.2 scipy==1.13.1 matplotlib==3.9.0
|
pip3 install psycopg2 proteus==${TRYTOND_VERSION} inotify honcho qrcode==6.1 pyshp==2.3.1 shapely==2.0.2 scipy==1.13.1 matplotlib==3.9.0 pudb==2024.1.2
|
||||||
|
|
||||||
if [ "$FACHO" == "True" ]; then
|
if [ "$FACHO" == "True" ]; then
|
||||||
pip3 install git+https://${GITEA_USER}:${GITEA_PASSWORD}@${GITEA_DOMAIN}/OneTeam/oc-facho.git@MigrationPython312Test
|
pip3 install git+https://${GITEA_USER}:${GITEA_PASSWORD}@${GITEA_DOMAIN}/OneTeam/oc-facho.git@MigrationPython312Test
|
||||||
|
25
.dev/pudb.cfg
Normal file
25
.dev/pudb.cfg
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[pudb]
|
||||||
|
breakpoints_weight = 0.16777216000000003
|
||||||
|
current_stack_frame = top
|
||||||
|
custom_shell =
|
||||||
|
custom_stringifier =
|
||||||
|
custom_theme = onedark-pro
|
||||||
|
default_variables_access_level = public
|
||||||
|
display = auto
|
||||||
|
hide_cmdline_win = True
|
||||||
|
hotkeys_breakpoints = B
|
||||||
|
hotkeys_code = C
|
||||||
|
hotkeys_stack = S
|
||||||
|
hotkeys_toggle_cmdline_focus = ctrl x
|
||||||
|
hotkeys_variables = V
|
||||||
|
line_numbers = True
|
||||||
|
prompt_on_quit = True
|
||||||
|
seen_welcome = e048
|
||||||
|
shell = internal
|
||||||
|
sidebar_width = 0.5
|
||||||
|
stack_weight = 0.2621440000000001
|
||||||
|
stringifier = default
|
||||||
|
theme = dark vim
|
||||||
|
variables_weight = 1.5625000000000002
|
||||||
|
wrap_variables = True
|
||||||
|
|
@ -2,21 +2,26 @@
|
|||||||
FROM node as builder-node
|
FROM node as builder-node
|
||||||
|
|
||||||
ARG TRYTOND_VERSION
|
ARG TRYTOND_VERSION
|
||||||
|
ENV SERIES=${TRYTOND_VERSION}
|
||||||
|
|
||||||
ARG GITEA_USER
|
ARG GITEA_USER
|
||||||
ARG GITEA_PASSWORD
|
ARG GITEA_PASSWORD
|
||||||
ARG GITEA_DOMAIN
|
ARG GITEA_DOMAIN
|
||||||
ARG FACHO
|
ARG FACHO
|
||||||
ARG FACHO_BRANCH
|
ARG FACHO_BRANCH
|
||||||
|
|
||||||
ENV SERIES=${TRYTOND_VERSION}
|
|
||||||
RUN npm install -g bower
|
RUN npm install -g bower
|
||||||
RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C /
|
RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C /
|
||||||
RUN cd /package && bower install --allow-root
|
RUN cd /package && bower install --allow-root
|
||||||
|
|
||||||
FROM python:3.11-bullseye
|
FROM python:3.11-bullseye
|
||||||
|
|
||||||
|
ARG TRYTOND_VERSION
|
||||||
|
ENV SERIES=${TRYTOND_VERSION}
|
||||||
|
|
||||||
# trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore`
|
# trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore`
|
||||||
RUN apt-get update && apt-get install -y postgresql-client
|
RUN apt-get update && apt-get install -y postgresql-client
|
||||||
|
RUN pip3 install trytond==${SERIES}.*
|
||||||
|
|
||||||
# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile
|
# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile
|
||||||
COPY --from=builder-node /package /var/lib/trytond/www
|
COPY --from=builder-node /package /var/lib/trytond/www
|
||||||
|
@ -16,9 +16,12 @@ services:
|
|||||||
DB_CACHE: /tmp
|
DB_CACHE: /tmp
|
||||||
DB_NAME: ":memory:"
|
DB_NAME: ":memory:"
|
||||||
TRYTOND_DATABASE_URI: sqlite://
|
TRYTOND_DATABASE_URI: sqlite://
|
||||||
|
ports:
|
||||||
|
- "${PUDB_PORT:-8005}:8005"
|
||||||
command: sleep 10h
|
command: sleep 10h
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
|
- ./.dev/pudb.cfg:/root/.config/pudb/pudb.cfg
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
Loading…
Reference in New Issue
Block a user