2022-06-03 15:11:47 +02:00
|
|
|
#version Trytond server example 5.0
|
2022-09-05 20:48:16 +02:00
|
|
|
ARG TRYTOND_VERSION
|
|
|
|
|
|
|
|
FROM tryton/tryton:$TRYTOND_VERSION
|
2022-01-05 23:16:13 +01:00
|
|
|
#lebel custom
|
2022-09-05 20:48:16 +02:00
|
|
|
LABEL org.label-schema.version="$TRYTON_VERSION"
|
|
|
|
|
|
|
|
ARG TRYTOND_VERSION
|
|
|
|
ARG PYTHON_VERSION
|
|
|
|
ARG OneTeam
|
|
|
|
ARG GnuHealth
|
|
|
|
ARG Etrivial
|
|
|
|
ARG Trytonar
|
|
|
|
ARG OneTeam_pos
|
|
|
|
ARG Presik
|
|
|
|
ARG Datalife
|
|
|
|
ARG NaNtic
|
|
|
|
ARG Kalenis
|
|
|
|
ARG GITEA_ORG
|
|
|
|
ARG GITEA_DOMAIN
|
|
|
|
ARG GITEA_USER
|
|
|
|
ARG GITEA_PASSWORD
|
|
|
|
ARG GITEA_ACCESS_TOKEN
|
|
|
|
ARG DIR_MODULES
|
|
|
|
|
2022-01-05 21:59:15 +01:00
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
git \
|
|
|
|
python3-click
|
|
|
|
|
|
|
|
RUN echo "Install modules non official"
|
|
|
|
COPY trytond-modules_non_official.sh /tmp/trytond-modules_non_official.sh
|
|
|
|
RUN cd /tmp/ \
|
|
|
|
&& bash trytond-modules_non_official.sh
|
2022-01-17 18:19:33 +01:00
|
|
|
|
|
|
|
##Enabled loggings
|
|
|
|
#COPY trytond_logging.conf /etc/trytond_logging.conf
|
|
|
|
#COPY uwsgi.conf /etc/uwsgi.conf
|
|
|
|
#RUN chown -R trytond:trytond /etc/trytond_logging.conf \
|
|
|
|
# && mkdir /var/log/trytond \
|
2022-08-30 00:07:47 +02:00
|
|
|
# && chown -R trytond:trytond /var/log/trytond
|
|
|
|
|
2022-01-17 18:19:33 +01:00
|
|
|
#ENV TRYTOND_LOGGING_CONFIG=/etc/trytond_logging.conf
|
|
|
|
#ENV TRYTOND_LOGGING_LEVEL=40
|
|
|
|
##Running in development mode (must enabled loggings)
|
|
|
|
#CMD ["trytond", "-c", "/etc/trytond.conf", "-vv", "--dev", "--logconf", "/etc/trytond_logging.conf"]
|
|
|
|
|
2022-08-30 00:07:47 +02:00
|
|
|
#USER trytond
|