<commit_before>#
# graphite-api
#

# Pull base image.
FROM ashangit/base:latest
MAINTAINER <NAME> <<EMAIL>>

ENV GRAPHITE_API_VERSION 1.0.1
ENV GUNICORN_VERSION 19.3.0
ENV GRAPHITE_API_CONFIG /data/graphite-api/conf/graphite-api.yml

# Deploy graphite-api.
RUN yum install cairo python-devel python-pip libffi-devel make gcc -y && \
    pip install graphite-api==${GRAPHITE_API_VERSION} && \
    pip install gunicorn==${GUNICORN_VERSION}

# Remove compiler package
RUN yum remove python-devel gcc make -y

# Create required folders
RUN mkdir -p /data/graphite-api/conf && \
	mkdir -p /data/graphite-api/data && \
	mkdir -p /data/graphite-api/index

# Set working directory
WORKDIR /data/graphite-api

# Copy default config file
COPY conf/graphite-api.yml /data/graphite-api/conf/graphite-api.yml
COPY conf/gunicorn-conf.py /data/graphite-api/conf/gunicorn-conf.py

# Declare default env variables<commit_msg>Remove unused data folder<commit_after>#
# graphite-api
#

# Pull base image.
FROM ashangit/base:latest
MAINTAINER <NAME> <<EMAIL>>

ENV GRAPHITE_API_VERSION 1.0.1
ENV GUNICORN_VERSION 19.3.0
ENV GRAPHITE_API_CONFIG /data/graphite-api/conf/graphite-api.yml

# Deploy graphite-api.
RUN yum install cairo python-devel python-pip libffi-devel make gcc -y && \
    pip install graphite-api==${GRAPHITE_API_VERSION} && \
    pip install gunicorn==${GUNICORN_VERSION}

# Remove compiler package
RUN yum remove python-devel gcc make -y

# Create required folders
RUN mkdir -p /data/graphite-api/conf && \
	mkdir -p /data/graphite-api/index

# Set working directory
WORKDIR /data/graphite-api

# Copy default config file
COPY conf/graphite-api.yml /data/graphite-api/conf/graphite-api.yml
COPY conf/gunicorn-conf.py /data/graphite-api/conf/gunicorn-conf.py

# Declare default env variables
{'fraction_non_alphanumeric': 0.1106763555058692, 'fraction_numerical': 0.007825600894354388, 'mean_word_length': 4.14367816091954, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '698754', 'n_tokens_mistral': 679, 'n_tokens_neox': 621, 'n_words': 157}