oc-docker-tryton-non-official/Dockerfile

53 lines
1.6 KiB
Docker
Raw Normal View History

2022-06-03 15:11:47 +02:00
#version Trytond server example 5.0
2022-01-26 02:30:41 +01:00
FROM tryton/tryton:
2022-01-05 23:16:13 +01:00
#lebel custom
2022-01-23 03:01:26 +01:00
LABEL org.label-schema.version=""
2022-01-05 23:16:13 +01:00
#version equal Tryond server version
2022-01-26 02:30:41 +01:00
ENV TRYTOND_VERSION=""
2022-05-24 22:11:47 +02:00
#python version that will run the docker example python3.7 or python3.9 is mandatory in case you use tryton6.2
2022-01-26 02:30:41 +01:00
ENV PYTHON_VERSION=""
2022-01-05 23:16:13 +01:00
#version equal Tryond server version
2022-01-23 03:01:26 +01:00
ENV GITEA_ORG=""
2022-01-05 23:16:13 +01:00
#domain server gitea
2022-01-26 02:30:41 +01:00
ENV GITEA_DOMAIN=""
2022-01-05 23:16:13 +01:00
#if the module repository is private
2022-01-23 03:01:26 +01:00
ENV GITEA_USER=""
ENV GITEA_PASSWORD=""
ENV GITEA_ACCESS_TOKEN=""
2022-01-05 23:16:13 +01:00
#By default all organizations are set to false, activate only one as true.
2022-01-05 21:59:15 +01:00
ENV GnuHealth="False"
ENV Etrivial="False"
ENV Trytonar="False"
2022-01-26 02:30:41 +01:00
ENV OneTeam="False"
2022-06-03 15:11:47 +02:00
ENV OneTeam_pos="False"
2022-01-05 21:59:15 +01:00
ENV Presik="False"
ENV Datalife="False"
2022-01-24 15:57:42 +01:00
ENV NaNtic="False"
2022-01-05 21:59:15 +01:00
ENV Kalenis="False"
ENV DIR_MODULES=/usr/local/lib/$PYTHON_VERSION/dist-packages/trytond/modules
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
##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-05-25 14:13:17 +02:00
# && chown -R trytond:trytond /var/log/trytond \
# && pip3 install numpy matplotlib
#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-01-05 21:59:15 +01:00
USER trytond