2020-05-17 08:25:07 +02:00
|
|
|
FROM registry.yaltik.net/odoocmd:yaltikc7
|
2022-02-28 20:19:10 +01:00
|
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
2020-05-17 08:25:07 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
ENV ODOO_ADMIN_PASSWORD="admin" ODOO_DATABASES="demo"
|
2020-05-17 08:25:07 +02:00
|
|
|
|
|
|
|
USER root
|
2022-02-28 20:19:10 +01:00
|
|
|
RUN yum install -y gettext cronie curl && yum clean all
|
2020-05-17 08:25:07 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
USER odoo
|
2020-05-17 08:25:07 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
COPY crontab /home/odoo/
|
|
|
|
COPY backup.template /home/odoo/
|
|
|
|
COPY hc.template /home/odoo/
|
|
|
|
COPY plan.py /home/odoo/
|
2022-03-01 10:53:57 +01:00
|
|
|
COPY launch.c7.sh /home/odoo/launch.sh
|
2022-02-28 20:19:10 +01:00
|
|
|
|
|
|
|
RUN mkdir -p backups
|
2020-05-17 08:25:07 +02:00
|
|
|
# Avoid overlayfs bug with tail
|
|
|
|
VOLUME /var/log
|
|
|
|
VOLUME /home/odoo/backups
|
|
|
|
|
2022-03-01 10:53:57 +01:00
|
|
|
USER root
|
2022-02-28 20:19:10 +01:00
|
|
|
CMD ["bash", "launch.sh"]
|