20161230: added release.
This commit is contained in:
parent
5f078030fa
commit
5ab7f69bd6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
.idea
|
||||
vars.env
|
||||
|
29
10.0/20161230/Dockerfile
Normal file
29
10.0/20161230/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
FROM steenzout/odoo:10.0-base
|
||||
MAINTAINER Pedro Salgado "steenzout@ymail.com"
|
||||
|
||||
ENV ODOO_RELEASE 20161230
|
||||
ENV ODOO_SHA1SUM 02d24f88c66a34c23f53e396c8c9d1adb1366d95
|
||||
|
||||
# Set the default config file
|
||||
ENV ODOO_RC /etc/odoo/odoo.conf
|
||||
|
||||
# Install Odoo
|
||||
RUN set -x; curl -o odoo.deb -SL http://nightly.odoo.com/10.0/nightly/deb/odoo_10.0.20161230_all.deb && echo "02d24f88c66a34c23f53e396c8c9d1adb1366d95 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 "10.0/entrypoint.sh" /
|
||||
COPY "10.0/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 default user when running the container
|
||||
USER odoo
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["odoo"]
|
29
8.0/20161230/Dockerfile
Normal file
29
8.0/20161230/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
FROM steenzout/odoo:8.0-base
|
||||
MAINTAINER Pedro Salgado "steenzout@ymail.com"
|
||||
|
||||
ENV ODOO_RELEASE 20161230
|
||||
ENV ODOO_SHA1SUM ba32245d9971a7ee3e2b3eb5e54dcab7ec3f209f
|
||||
|
||||
# Set the default config file
|
||||
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
|
||||
|
||||
# Install Odoo
|
||||
RUN set -x; curl -o odoo.deb -SL http://nightly.odoo.com/8.0/nightly/deb/odoo_8.0.20161230_all.deb && echo 'ba32245d9971a7ee3e2b3eb5e54dcab7ec3f209f 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 "8.0/entrypoint.sh" /
|
||||
COPY "8.0/openerp-server.conf" /etc/odoo/
|
||||
RUN chown odoo /etc/odoo/openerp-server.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 default user when running the container
|
||||
USER odoo
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["openerp-server"]
|
@ -1,3 +0,0 @@
|
||||
ODOO_RELEASE=20160101
|
||||
ODOO_SHA1SUM=d55a3f5317529defe8cf8a8eec82ae6159a0fe81
|
||||
ODOO_VERSION=9.0
|
29
9.0/20161230/Dockerfile
Normal file
29
9.0/20161230/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
FROM steenzout/odoo:9.0-base
|
||||
MAINTAINER Pedro Salgado "steenzout@ymail.com"
|
||||
|
||||
ENV ODOO_RELEASE 20161230
|
||||
ENV ODOO_SHA1SUM 1795747dd859dc59405a40534206cb9c3632266f
|
||||
|
||||
# Set the default config file
|
||||
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
|
||||
|
||||
# Install Odoo
|
||||
RUN set -x; curl -o odoo.deb -SL http://nightly.odoo.com/9.0/nightly/deb/odoo_9.0c.20161230_all.deb && echo "1795747dd859dc59405a40534206cb9c3632266f 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 "9.0/entrypoint.sh" /
|
||||
COPY "9.0/openerp-server.conf" /etc/odoo/
|
||||
RUN chown odoo /etc/odoo/openerp-server.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 default user when running the container
|
||||
USER odoo
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["openerp-server"]
|
42
9.0/20161230/entrypoint.sh
Executable file
42
9.0/20161230/entrypoint.sh
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# set the postgres database host, port, user and password according to the environment
|
||||
# and pass them as arguments to the odoo process if not present in the config file
|
||||
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
|
||||
: ${PORT:=${DB_PORT_5432_TCP_PORT:=5432}}
|
||||
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
|
||||
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}
|
||||
|
||||
DB_ARGS=()
|
||||
function check_config() {
|
||||
param="$1"
|
||||
value="$2"
|
||||
if ! grep -q -E "^\s*\b${param}\b\s*=" "$OPENERP_SERVER" ; then
|
||||
DB_ARGS+=("--${param}")
|
||||
DB_ARGS+=("${value}")
|
||||
fi;
|
||||
}
|
||||
check_config "db_host" "$HOST"
|
||||
check_config "db_port" "$PORT"
|
||||
check_config "db_user" "$USER"
|
||||
check_config "db_password" "$PASSWORD"
|
||||
|
||||
case "$1" in
|
||||
-- | openerp-server)
|
||||
shift
|
||||
if [[ "$1" == "scaffold" ]] ; then
|
||||
exec openerp-server "$@"
|
||||
else
|
||||
exec openerp-server "$@" "${DB_ARGS[@]}"
|
||||
fi
|
||||
;;
|
||||
-*)
|
||||
exec openerp-server "$@" "${DB_ARGS[@]}"
|
||||
;;
|
||||
*)
|
||||
exec "$@"
|
||||
esac
|
||||
|
||||
exit 1
|
38
9.0/20161230/openerp-server.conf
Normal file
38
9.0/20161230/openerp-server.conf
Normal file
@ -0,0 +1,38 @@
|
||||
[options]
|
||||
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons
|
||||
; admin_passwd = admin
|
||||
auto_reload = True
|
||||
; csv_internal_sep = ,
|
||||
data_dir = /var/lib/odoo
|
||||
; 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 = /var/log/odoo/odoo.log
|
||||
; 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
|
@ -1,3 +0,0 @@
|
||||
ODOO_RELEASE=${ODOO_RELEASE}
|
||||
ODOO_SHA1SUM=${ODOO_SHA1SUM}
|
||||
ODOO_VERSION=${ODOO_VERSION}
|
Loading…
Reference in New Issue
Block a user