docker_images/odoo/backups/Dockerfile

25 lines
513 B
Docker
Raw Normal View History

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-05 08:56:58 +02:00
WORKDIR /home/odoo
USER root
2016-10-05 08:56:58 +02:00
RUN mkdir backups
RUN apt-get install -y --no-install-recommends cron gettext-base
2016-10-05 08:56:58 +02:00
COPY crontab /etc/crontab
RUN chmod 644 /etc/crontab
RUN touch /var/log/cron.log
2016-10-05 08:56:58 +02:00
COPY backup.template .
COPY plan.py .
2016-10-05 08:56:58 +02:00
COPY launch.sh .
RUN chown -R odoo:odoo . && chown odoo:odoo /var/log/cron.log
2016-10-05 08:56:58 +02:00
VOLUME /home/odoo/backups
2016-10-05 08:56:58 +02:00
CMD bash launch.sh