docker_images/odoo/backups/Dockerfile

26 lines
467 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
# Avoid overlayfs bug with tail
VOLUME /var/log
COPY crontab ./crontab
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 .
2016-10-05 08:56:58 +02:00
VOLUME /home/odoo/backups
2016-10-05 08:56:58 +02:00
CMD bash launch.sh