2016-12-21 10:16:53 +01:00
|
|
|
FROM registry.yaltik.net/odoocmd:yaltik
|
2016-10-05 08:56:58 +02:00
|
|
|
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
|
|
|
|
ENV ODOO_ADMIN_PASSWORD admin
|
|
|
|
ENV ODOO_DATABASES demo
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2016-10-05 08:56:58 +02:00
|
|
|
WORKDIR /home/odoo
|
|
|
|
USER root
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2016-10-05 08:56:58 +02:00
|
|
|
RUN mkdir backups
|
|
|
|
RUN apt-get install -y --no-install-recommends cron gettext-base
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2017-11-22 16:36:03 +01:00
|
|
|
# Avoid overlayfs bug with tail
|
|
|
|
VOLUME /var/log
|
|
|
|
|
2017-11-23 05:55:20 +01:00
|
|
|
COPY crontab ./crontab
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2016-10-05 08:56:58 +02:00
|
|
|
COPY backup.template .
|
2017-01-04 17:55:05 +01:00
|
|
|
COPY plan.py .
|
2016-10-05 08:56:58 +02:00
|
|
|
COPY launch.sh .
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2017-11-21 10:30:09 +01:00
|
|
|
RUN chown -R odoo:odoo .
|
2016-10-05 08:56:58 +02:00
|
|
|
VOLUME /home/odoo/backups
|
2016-10-08 07:31:14 +02:00
|
|
|
|
2016-10-05 08:56:58 +02:00
|
|
|
CMD bash launch.sh
|