diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-02-19 18:02:19 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-02-20 16:56:13 +0100 |
| commit | 520360d80b0af02f9afc806e3bb5c1400b641cba (patch) | |
| tree | 4870e3a99a04c22940296babb78fc1e8632676e2 /setup/package.dfsrc | |
| parent | aca65438e80bca7ab20501d654099873cd424366 (diff) | |
[ADD] Packaging: nightly tests: src dockerfile
Creation of a Dockerfile for the src package for nightly tests.
Remove unnecessary libraries installation from the Debian Dockerfile.
Diffstat (limited to 'setup/package.dfsrc')
| -rw-r--r-- | setup/package.dfsrc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/setup/package.dfsrc b/setup/package.dfsrc new file mode 100644 index 00000000000..3b1f4cdfd09 --- /dev/null +++ b/setup/package.dfsrc @@ -0,0 +1,42 @@ +# Please note that this Dockerfile is used for testing nightly builds and should +# not be used to deploy Odoo +FROM debian:stable +MAINTAINER Odoo S.A. <info@odoo.com> + +# Change policy-rc.d so that services start automatically once installed +RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d + +RUN apt-get update && \ + apt-get install -y locales && \ + rm -rf /var/lib/apt/lists/* + +# Reconfigure locales such that postgresql uses UTF-8 encoding +RUN dpkg-reconfigure locales && \ + locale-gen C.UTF-8 && \ + /usr/sbin/update-locale LANG=C.UTF-8 +ENV LC_ALL C.UTF-8 + +RUN apt-get update -qq && \ + apt-get upgrade -qq -y && \ + apt-get install \ + postgresql \ + postgresql-server-dev-all \ + postgresql-client \ + adduser \ + libxml2-dev \ + libxslt1-dev \ + libldap2-dev \ + libsasl2-dev \ + libssl-dev \ + libjpeg-dev \ + python-dev \ + python-pip \ + build-essential \ + python -y && \ + rm -rf /var/lib/apt/lists/* + +COPY requirements.txt /opt/release/requirements.txt + +RUN pip install -r /opt/release/requirements.txt + +RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc |
