Adding 8.0-runbot Dockerfiles

This commit is contained in:
Peter Alabaster 2016-10-14 23:16:58 +01:00
parent 488555e0da
commit 762c07bf9a
3 changed files with 72 additions and 0 deletions

7
8.0-runbot/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM quay.io/opusvl/odoo:testing_improvements
MAINTAINER Peter Alabaster <peter.alabaster@opusvl.com>
# Install missing system & pip dependencies for runbot module
RUN apt-get update && apt-get install -y \
libfreetype6-dev libpng12-dev libxft-dev python-dev python-pip && \
pip install matplotlib

27
8.0-runbot/entrypoint.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
set -e
# set odoo database host, port, user and password
: ${PGHOST:=$DB_PORT_5432_TCP_ADDR}
: ${PGPORT:=$DB_PORT_5432_TCP_PORT}
: ${PGUSER:=${DB_ENV_POSTGRES_USER:='postgres'}}
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
export PGHOST PGPORT PGUSER PGPASSWORD
case "$1" in
--)
shift
exec gosu odoo openerp-server "$@"
;;
-*)
exec gosu odoo openerp-server "$@"
;;
openerp-server)
exec gosu odoo "$@"
;;
*)
exec "$@"
esac
exit 1

View File

@ -0,0 +1,38 @@
[options]
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons
data_dir = /var/lib/odoo
auto_reload = True
; admin_passwd = admin
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
; dbfilter = .*
; debug_mode = False
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
; list_db = True
; log_db = False
; log_handler = [':INFO']
; log_level = info
; logfile = None
; longpolling_port = 8072
; max_cron_threads = 2
; osv_memory_age_limit = 1.0
; osv_memory_count_limit = False
; smtp_password = False
; smtp_port = 25
; smtp_server = localhost
; smtp_ssl = False
; smtp_user = False
; workers = 0
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071