<commit_before>FROM ubuntu:14.04
MAINTAINER <NAME><<EMAIL>>

# Actualizamos las bases de apt-get!
RUN apt-get -q -y update 

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common
RUN add-apt-repository universe
RUN DEBIAN_FRONTEND=noninteractive apt-get update

# Instalamos la Herramientas que vamos a requerir
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
            libevent-dev \
            libpq-dev \
            nginx \
            apache2 \
            libapache2-mod-rpaf \
            postfix \
            build-essential \
            python-dev \
            python-minimal \
            python-virtualenv \
            python-pip \
            libapache2-mod-wsgi \
            wget \
            nano \
            ca-certificates \
            git-core

# Crearemos algunas variables de entorno, que nos seran utiles mas tarde
ENV CKAN_APACHE2_PORT 80
ENV CKAN_CONFIG_FILE development.ini
ENV HOME /root
ENV CKAN_VERSION 2.5.1  
ENV CKAN_HOME /usr/lib/ckan/default
ENV CKAN_CONFIG /etc/ckan/default
ENV CKAN_DATA /var/lib/ckan
ENV CKAN_INIT /etc/ckan_init.d

# Instalamos psql
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install pgadmin3


# Bajamos el .deb de ckan
RUN mkdir -p $CKAN_HOME $CKAN_CONFIG $CKAN_DATA
RUN virtualenv $CKAN_HOME
RUN wget http://packaging.ckan.org/python-ckan_2.5-trusty_amd64.deb -P /tmp
RUN ln -s $CKAN_HOME/src/ckan/ckan/config/who.ini $CKAN_CONFIG/who.ini
RUN mkdir -p $CKAN_HOME $CKAN_CONFIG $CKAN_DATA
RUN chown www-data:www-data $CKAN_DATA
RUN chmod u+rwx $CKAN_DATA

# Instalamos CKAN
RUN dpkg -i /tmp/python-ckan_2.5-trusty_amd64.deb

# Actualizamos pip<commit_msg>Añado creacion de archivo de logs para CKAN & DataPusher<commit_after>FROM ubuntu:14.04
MAINTAINER <NAME><<EMAIL>>

# Actualizamos las bases de apt-get!
RUN apt-get -q -y update 

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common
RUN add-apt-repository universe
RUN DEBIAN_FRONTEND=noninteractive apt-get update

# Instalamos la Herramientas que vamos a requerir
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
            libevent-dev \
            libpq-dev \
            nginx \
            apache2 \
            libapache2-mod-rpaf \
            postfix \
            build-essential \
            python-dev \
            python-minimal \
            python-virtualenv \
            python-pip \
            libapache2-mod-wsgi \
            wget \
            nano \
            ca-certificates \
            git-core

# Crearemos algunas variables de entorno, que nos seran utiles mas tarde
ENV CKAN_APACHE2_PORT 80
ENV CKAN_CONFIG_FILE development.ini
ENV HOME /root
ENV CKAN_VERSION 2.5.1  
ENV CKAN_HOME /usr/lib/ckan/default
ENV CKAN_CONFIG /etc/ckan/default
ENV CKAN_DATA /var/lib/ckan
ENV CKAN_INIT /etc/ckan_init.d

# Instalamos psql
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install pgadmin3


# Bajamos el .deb de ckan
RUN mkdir -p $CKAN_HOME $CKAN_CONFIG $CKAN_DATA
RUN virtualenv $CKAN_HOME
RUN wget http://packaging.ckan.org/python-ckan_2.5-trusty_amd64.deb -P /tmp
RUN ln -s $CKAN_HOME/src/ckan/ckan/config/who.ini $CKAN_CONFIG/who.ini
RUN mkdir -p $CKAN_HOME $CKAN_CONFIG $CKAN_DATA
RUN chown www-data:www-data $CKAN_DATA
RUN chmod u+rwx $CKAN_DATA
RUN touch /tmp/ckan_service.log
RUN chmod u+rw /tmp/ckan_service.log
# Instalamos CKAN
RUN dpkg -i /tmp/python-ckan_2.5-trusty_amd64.deb

# Actualizamos pip
{'fraction_non_alphanumeric': 0.08348943002408349, 'fraction_numerical': 0.012844527696012844, 'mean_word_length': 2.6575342465753424, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4358746', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1342, 'n_words': 332}