2020-05-17 08:25:07 +02:00
|
|
|
FROM registry.yaltik.net/odoocmd:yaltikc7
|
|
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
|
|
|
|
ENV ODOO_ADMIN_PASSWORD admin
|
|
|
|
ENV ODOO_DATABASES demo
|
|
|
|
|
|
|
|
WORKDIR /home/odoo
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN mkdir backups
|
2021-05-13 12:25:35 +02:00
|
|
|
RUN yum install -y gettext cronie curl
|
2020-05-17 08:25:07 +02:00
|
|
|
|
|
|
|
# Avoid overlayfs bug with tail
|
|
|
|
VOLUME /var/log
|
|
|
|
|
|
|
|
COPY crontab ./crontab
|
|
|
|
|
|
|
|
COPY backup.template .
|
2021-05-13 12:25:35 +02:00
|
|
|
COPY hc.template .
|
2020-05-17 08:25:07 +02:00
|
|
|
COPY plan.py .
|
|
|
|
COPY launch.c7.sh launch.sh
|
|
|
|
|
|
|
|
RUN chown -R odoo:odoo .
|
|
|
|
VOLUME /home/odoo/backups
|
|
|
|
|
|
|
|
CMD bash launch.sh
|