50 lines
1.6 KiB
Docker
50 lines
1.6 KiB
Docker
#version Trytond server example 5.0
|
|
FROM tryton/tryton:6.0
|
|
#lebel custom
|
|
LABEL org.label-schema.version=""
|
|
#version equal Tryond server version
|
|
ENV TRYTOND_VERSION="6.0"
|
|
#python version that will run the docker example python3.7
|
|
ENV PYTHON_VERSION="python3.7"
|
|
#version equal Tryond server version
|
|
ENV GITEA_ORG=""
|
|
#domain server gitea
|
|
ENV GITEA_DOMAIN="gitea.disroot.org"
|
|
#if the module repository is private
|
|
ENV GITEA_USER=""
|
|
ENV GITEA_PASSWORD=""
|
|
ENV GITEA_ACCESS_TOKEN=""
|
|
#By default all organizations are set to false, activate only one as true.
|
|
ENV GnuHealth="False"
|
|
ENV Etrivial="False"
|
|
ENV Trytonar="False"
|
|
ENV OneCluster="False"
|
|
ENV Presik="False"
|
|
ENV Datalife="False"
|
|
ENV NaNtic="True"
|
|
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 \
|
|
# && chown -R trytond:trytond /var/log/trytond
|
|
#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"]
|
|
|
|
USER trytond
|