<commit_before>FROM python:3.4

RUN groupadd user && useradd --create-home --home-dir /home/user -g user user
ENV LANG en_US.utf8
WORKDIR /home/user

# install geodjango dependencies: https://docs.djangoproject.com/en/1.8/ref/contrib/gis/install/geolibs/
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "binutils", "libproj-dev", "gdal-bin", "libgeoip1", "gdal-bin", "python-gdal"]
RUN ["pip", "install", "--upgrade", "pip"]

ENV CELERY_VERSION 3.1.18

RUN pip install celery=="$CELERY_VERSION"

RUN { \
	echo 'import os'; \
	echo "BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://')"; \
} > celeryconfig.py

# --link some-rabbit:rabbit "just works"
ENV CELERY_BROKER_URL amqp://guest@rabbit

ADD ["./requirements", "/tmp/requirements"]

RUN ["pip", "install", "-r", "/tmp/requirements/production.txt"]

USER user

# move into our working directory
ENV HOME /home/osmaxx
WORKDIR /home/osmaxx/source<commit_msg>use local (development) also in requirements for celery<commit_after>FROM python:3.4

RUN groupadd user && useradd --create-home --home-dir /home/user -g user user
ENV LANG en_US.utf8
WORKDIR /home/user

# install geodjango dependencies: https://docs.djangoproject.com/en/1.8/ref/contrib/gis/install/geolibs/
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "binutils", "libproj-dev", "gdal-bin", "libgeoip1", "gdal-bin", "python-gdal"]
RUN ["pip", "install", "--upgrade", "pip"]

ENV CELERY_VERSION 3.1.18

RUN pip install celery=="$CELERY_VERSION"

RUN { \
	echo 'import os'; \
	echo "BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://')"; \
} > celeryconfig.py

# --link some-rabbit:rabbit "just works"
ENV CELERY_BROKER_URL amqp://guest@rabbit

ADD ["./requirements", "/tmp/requirements"]

RUN ["pip", "install", "-r", "/tmp/requirements/local.txt"]

USER user

# move into our working directory
ENV HOME /home/osmaxx
WORKDIR /home/osmaxx/source
{'fraction_non_alphanumeric': 0.18153034300791557, 'fraction_numerical': 0.010554089709762533, 'mean_word_length': 4.511627906976744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '6578369', 'n_tokens_mistral': 746, 'n_tokens_neox': 709, 'n_words': 170}