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
|
|
|
|
2016-10-05 08:56:58 +02:00
|
|
|
COPY crontab /etc/crontab
|
|
|
|
RUN chmod 644 /etc/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
|