<commit_before>#
#Cleanup orphaned docker volumes
#Usage:
#docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes [--dry-run]
#
FROM debian:jessie

MAINTAINER <NAME> <<EMAIL>>

#Install an up to date version of docker
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 && \
    echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list && \
    apt-get update && apt-get install -y lxc-docker && \
	apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

#Add the cleanup script
ADD ./docker-cleanup-volumes.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-cleanup-volumes.sh

#Define entrypoint
ENTRYPOINT ["/usr/local/bin/docker-cleanup-volumes.sh"]<commit_msg>A docker client version can be specified in Dockerfile<commit_after>#
#Cleanup orphaned docker volumes
#Usage:
#docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes [--dry-run]
#
FROM debian:jessie

MAINTAINER <NAME> <<EMAIL>>

ENV DOCKER_VERSION=1.5.0

#Install an up to date version of docker
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 && \
    echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list && \
    apt-get update && apt-get install -y lxc-docker-$DOCKER_VERSION && \
	apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

#Add the cleanup script
ADD ./docker-cleanup-volumes.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-cleanup-volumes.sh

#Define entrypoint
ENTRYPOINT ["/usr/local/bin/docker-cleanup-volumes.sh"]
{'fraction_non_alphanumeric': 0.1544159544159544, 'fraction_numerical': 0.037037037037037035, 'mean_word_length': 3.707774798927614, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4058792', 'n_tokens_mistral': 732, 'n_tokens_neox': 645, 'n_words': 147}