[FIX]Odoobackup default can not be used with envsubst

This commit is contained in:
Fabien Bourgeois 2017-04-13 08:02:40 +02:00
parent 87dc3513e5
commit 3bc2dda176
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
python backup.py -oh ${ODOO_HOST:=odoo} -pw ${ODOO_ADMIN_PASSWORD} -D backups/ -n ${ODOO_DATABASES} python backup.py -oh ${ODOO_HOST} -pw ${ODOO_ADMIN_PASSWORD} -D backups/ -n ${ODOO_DATABASES}

View File

@ -54,3 +54,7 @@ services:
build: build:
context: ./backups context: ./backups
image: registry.yaltik.net/odoobackup:yaltik image: registry.yaltik.net/odoobackup:yaltik
environment:
ODOO_HOST: odoo
ODOO_ADMIN_PASSWORD: admin
ODOO_DATABASES: base

10
python/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM debian:jessie
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
RUN apt-get update && apt-get install -y --no-install-recommends python2.7-minimal python-pip ipython
# Packages cleanup
RUN apt-get purge -y --auto-remove && apt-get clean
RUN useradd fabien -m -s /bin/bash
USER fabien
WORKDIR /home/fabien
CMD /bin/true