<commit_before>##
## Dockerfile for a standalone OpenErp environments
## Adapted from main postgresql docker file (see https://registry.hub.docker.com/_/postgres/)
##

FROM ubuntu:14.04
MAINTAINER <EMAIL>


# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN useradd --home /var/lib/postgresql --create-home postgres

# make the "en_US.UTF-8" locale so postgres will be utf-8 enabled by default
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

# install Postgres
#
ENV PG_MAJOR 9.3
RUN apt-get update \
&& apt-get install -y postgresql-common \
&& sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf
RUN apt-get update  && apt-get install -y postgresql-$PG_MAJOR 


# install python libraries required by Openerp
RUN apt-get install -y 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-unittest2 python-mock python-docutils


# clean apt packets
RUN rm -rf /var/lib/apt/lists/*

# Adding the good environment variable
# Adds the executable postgres path to PATH
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
ENV PGDATA /var/lib/postgresql/data
RUN rm /etc/environment \
&& echo PATH=\"$PATH\" >> /etc/environment \
&& echo PGDATA=\"$PGDATA\" >> /etc/environment


# Adding the openerp user
ENV OPENERPUSER erpdynamease
RUN useradd --create-home $OPENERPUSER


<commit_msg>(feat) Dockerfile v8 tentative<commit_after>##
## Dockerfile for a standalone OpenErp environments
## Needs git hub to be installed
##

FROM ubuntu:14.04
MAINTAINER <EMAIL>

RUN set -x; \
        apt-get update \
        && apt-get install -y --no-install-recommends \
	curl nano \
	python-tz python-babel python-dateutil python-psycopg2 \ 
	python-werkzeug python-decorator python-yaml python-unittest2  \
   	python-mako python-jinja2 python-requests python-docutils python-openid \
	python-unidecode python-passlib python-pychart python-psutil python-pypdf \
	python-serial python-reportlab postgresql python-pip python-lxml python-dev \
	python-cups python-xlwt python-bs4 python-unicodecsv vatnumber python-simplejson\
	fontconfig libxrender1 xfonts-75dpi xfonts-base poppler-utils \
	&& curl -o wkhtmltox.deb -SL http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb \
        && dpkg --force-depends -i wkhtmltox.deb \
        && apt-get -y install -f --no-install-recommends \
        && apt-get purge -y --auto-remove



# Expose Odoo services
EXPOSE 8069 8071

# Set the default config file
# ENV OPENERP_SERVER /etc/odoo/openerp-server.conf

{'fraction_non_alphanumeric': 0.10769739015526925, 'fraction_numerical': 0.015857284440039643, 'mean_word_length': 3.6229007633587784, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7185112', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1002, 'n_words': 283}