oc-docker-tryton-non-official/Dockerfile

68 lines
1.6 KiB
Docker
Raw Normal View History

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
2022-11-15 06:00:06 +01:00
ARG Provider
ARG URL_MULTI_MIGRATE
2023-05-15 18:41:52 +02:00
ARG REPO_MULTI_MIGRATE
2022-09-05 20:48:16 +02:00
ARG GITEA_DOMAIN
ARG GITEA_USER
ARG GITEA_PASSWORD
ARG GITEA_ACCESS_TOKEN
ARG DIR_MODULES
2022-11-15 06:00:06 +01:00
ARG TRYTOND_LOGGING_CONFIG
ARG TRYTOND_LOGGING_LEVEL
ARG DEVELOP
ARG WORKER
ARG EMAIL
ARG TRYTONPASSFILE
ARG URL_MULTI_MIGRATE
2022-11-22 06:03:05 +01:00
ARG SMTP
ARG SMTP_TYPE
ARG SMTP_USER
ARG SMTP_PASSWORD
ARG SMTP_DOMAIN
ARG SMTP_PORT
ARG SMTP_FROM
ARG SMTP_EMAIL
2022-09-05 20:48:16 +02:00
2022-01-05 21:59:15 +01:00
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
2023-06-15 03:41:05 +02:00
python3-click \
python3-ipython
2022-01-05 21:59:15 +01:00
RUN echo "Install modules non official"
2022-11-15 06:00:06 +01:00
COPY trytond.conf /etc/trytond.conf
COPY uwsgi.conf /etc/uwsgi.conf
COPY $TRYTOND_VERSION /opt
COPY start.sh /opt
COPY trytond-modules_non_official.sh /tmp/trytond-modules_non_official.sh
2022-01-05 21:59:15 +01:00
RUN cd /tmp/ \
&& bash trytond-modules_non_official.sh
2022-11-15 06:00:06 +01:00
COPY trytond_logging.conf /etc/trytond_logging.conf
COPY trytond_cron_logging.conf /etc/trytond_cron_logging.conf
COPY trytond_worker_logging.conf /etc/trytond_worker_logging.conf
RUN touch /etc/trytond_populate.conf \
&& touch $TRYTONPASSFILE \
&& chown -R trytond:trytond /etc/trytond* \
&& rm -rf /var/log/trytond \
2022-11-15 06:00:06 +01:00
&& mkdir /var/log/trytond \
&& chown -R trytond:trytond /var/log/trytond \
&& rm -rf /mnt/attachment \
2022-11-15 06:00:06 +01:00
&& mkdir /mnt/attachment \
&& chown -R trytond:trytond /mnt/attachment
USER trytond
2023-05-15 18:41:52 +02:00
CMD ["/bin/bash", "/opt/start.sh"]