Created
October 13, 2014 16:38
-
-
Save renzo1974/d61bc6525f5b76245b50 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Odoo 8.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:12.04 | |
MAINTAINER Renzo Meister <[email protected]> | |
# Update Package index | |
RUN apt-get update | |
# Install needed packages | |
RUN apt-get install -y --force-yes --no-install-recommends python-dateutil python-feedparser python-gdata python-ldap \ | |
python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \ | |
python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \ | |
python-simplejson python-tz python-vatnumber python-vobject python-webdav \ | |
python-werkzeug python-xlwt python-yaml python-zsi python-docutils \ | |
python-psutil wget python-unittest2 python-mock python-jinja2 \ | |
python-dev libpq-dev poppler-utils python-pdftools antiword python-setuptools python-pybabel \ | |
python-geoip python-gevent python-ldap python-lxml python-markupsafe python-pip \ | |
python-psutil python-psycopg2 python-pychart python-pydot python-pypdf \ | |
python-reportlab python-simplejson python-yaml python-uno \ | |
postgresql-client python-decorator python-imaging python-requests python-passlib \ | |
git bzr vim libreoffice curl openssh-server | |
# Install NodeJS and Less compiler needed by Odoo 8 Website | |
curl -L https://npmjs.org/install.sh | sh | |
npm install less | |
# Fix GID and UID for openerp user (TODO: change to odoo user) | |
RUN addgroup --gid=1000 openerp && adduser --system --uid=1000 --gid=1000 --home /home/openerp --shell /bin/bash openerp | |
# Install newest version of wkhtmltopdf | |
RUN cd /tmp && wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb &&\ | |
dpkg -i /tmp/wkhtmltox-0.12.1_linux-trusty-amd64.deb | |
# It's time to install aeroolib, which is used from aeroo reports | |
RUN cd /tmp && git clone https://github.com/jamotion/aeroolib.git; \ | |
cd /tmp/aeroolib && python setup.py install | |
# Now we install the latest version of Odoo directly from github | |
ADD odoo.deb /tmp/odoo.deb | |
RUN dpkg -i /tmp/odoo.deb | |
# set password for openerp user | |
RUN echo "passwd\npasswd\n" | passwd openerp | |
# Set ports | |
EXPOSE 8069 | |
# Switch to openerp user for running odoo | |
USER openerp | |
# Set default start command | |
CMD ["/usr/bin/openerp-server -c /etc/openerp/openerp-server.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment