[ADD] Odoo: 10.0
* Odoo version 10 created. Release 20161007. * Fixed old path. * Fixed startup command. * Changed to new naming convention and environment variables. Closes #75
This commit is contained in:
		
							parent
							
								
									b3d55d2959
								
							
						
					
					
						commit
						0fbea3c734
					
				
							
								
								
									
										53
									
								
								10.0/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								10.0/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,53 @@
 | 
			
		||||
FROM debian:jessie
 | 
			
		||||
MAINTAINER Odoo S.A. <info@odoo.com>
 | 
			
		||||
 | 
			
		||||
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
 | 
			
		||||
RUN set -x; \
 | 
			
		||||
        apt-get update \
 | 
			
		||||
        && apt-get install -y --no-install-recommends \
 | 
			
		||||
            ca-certificates \
 | 
			
		||||
            curl \
 | 
			
		||||
            node-less \
 | 
			
		||||
            node-clean-css \
 | 
			
		||||
            python-pyinotify \
 | 
			
		||||
            python-renderpm \
 | 
			
		||||
            python-support \
 | 
			
		||||
        && curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
 | 
			
		||||
        && echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
 | 
			
		||||
        && dpkg --force-depends -i wkhtmltox.deb \
 | 
			
		||||
        && apt-get -y install -f --no-install-recommends \
 | 
			
		||||
        && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false npm \
 | 
			
		||||
        && rm -rf /var/lib/apt/lists/* wkhtmltox.deb
 | 
			
		||||
 | 
			
		||||
# Install Odoo
 | 
			
		||||
ENV ODOO_VERSION 10.0
 | 
			
		||||
ENV ODOO_RELEASE 20161017
 | 
			
		||||
RUN set -x; \
 | 
			
		||||
        curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}.${ODOO_RELEASE}_all.deb \
 | 
			
		||||
        && echo '98c40e7543a0204d1f4bf8ac7255451437fdbb04 odoo.deb' | sha1sum -c - \
 | 
			
		||||
        && dpkg --force-depends -i odoo.deb \
 | 
			
		||||
        && apt-get update \
 | 
			
		||||
        && apt-get -y install -f --no-install-recommends \
 | 
			
		||||
        && rm -rf /var/lib/apt/lists/* odoo.deb
 | 
			
		||||
 | 
			
		||||
# Copy entrypoint script and Odoo configuration file
 | 
			
		||||
COPY ./entrypoint.sh /
 | 
			
		||||
COPY ./odoo.conf /etc/odoo/
 | 
			
		||||
RUN chown odoo /etc/odoo/odoo.conf
 | 
			
		||||
 | 
			
		||||
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
 | 
			
		||||
RUN mkdir -p /mnt/extra-addons \
 | 
			
		||||
        && chown -R odoo /mnt/extra-addons
 | 
			
		||||
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
 | 
			
		||||
 | 
			
		||||
# Expose Odoo services
 | 
			
		||||
EXPOSE 8069 8071
 | 
			
		||||
 | 
			
		||||
# Set the default config file
 | 
			
		||||
ENV ODOO_RC /etc/odoo/odoo.conf
 | 
			
		||||
 | 
			
		||||
# Set default user when running the container
 | 
			
		||||
USER odoo
 | 
			
		||||
 | 
			
		||||
ENTRYPOINT ["/entrypoint.sh"]
 | 
			
		||||
CMD ["odoo"]
 | 
			
		||||
							
								
								
									
										24
									
								
								10.0/entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								10.0/entrypoint.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,24 @@
 | 
			
		||||
#!/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 odoo "$@"
 | 
			
		||||
		;;
 | 
			
		||||
	-*)
 | 
			
		||||
		exec odoo "$@"
 | 
			
		||||
		;;
 | 
			
		||||
	*)
 | 
			
		||||
		exec "$@"
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
exit 1
 | 
			
		||||
							
								
								
									
										38
									
								
								10.0/odoo.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								10.0/odoo.conf
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,38 @@
 | 
			
		||||
[options]
 | 
			
		||||
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/odoo/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
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user