<commit_before>FROM inthecloud247/kdocker-base
MAINTAINER inthecloud247 "<EMAIL>"

ENV LAST_UPDATED 2013-12-22

# copy required conf files and folders
ADD setupfiles/ /setupfiles/

RUN \
  `# Install etcd from cache`; \
  mkdir -vp /opt/etcd/; \
  tar --strip-components=1 -xvf /setupfiles/cache/github.com/coreos/etcd/releases/download/v0.2.0-rc3/etcd-v0.2.0-rc3-Linux-x86_64.tar.gz -C /opt/etcd/; \
  ln -s /opt/etcd/etcd /usr/sbin/etcd; \
  ln -s /opt/etcd/etcdctl /usr/sbin/etcdctl;


CMD ["./etcd"]

# client port
#EXPOSE 4001
# cluster communication port
#EXPOSE 7001

#CMD ["./etcd", "-peer-addr 127.0.0.1:7001", "-addr 127.0.0.1:4001", "-data-dir machines/machine1", "-name machine1"]

# [etcd] examples for launching a cluster
# ./etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 -data-dir machines/machine1 -name machine1
# ./etcd -peer-addr 127.0.0.1:7002 -addr 127.0.0.1:4002 -peers 127.0.0.1:7001 -data-dir machines/machine2 -name machine2
# ./etcd -peer-addr 127.0.0.1:7003 -addr 127.0.0.1:4003 -peers 127.0.0.1:7001 -data-dir machines/machine3 -name machine3<commit_msg>installing from cache if available<commit_after>FROM inthecloud247/kdocker-base
MAINTAINER inthecloud247 "<EMAIL>"

ENV LAST_UPDATED 2013-12-22

# copy required conf files and folders
ADD setupfiles/ /setupfiles/

RUN \
  `# Install etcd (using cache if possible)`; \
  cd /setupfiles/cache; \
  wget -p -c --no-check-certificate https://github.com/coreos/etcd/releases/download/v0.2.0-rc3/etcd-v0.2.0-rc3-Linux-x86_64.tar.gz; \
  mkdir -vp /opt/etcd/; \
  tar --strip-components=1 -xvf /setupfiles/cache/github.com/coreos/etcd/releases/download/v0.2.0-rc3/etcd-v0.2.0-rc3-Linux-x86_64.tar.gz -C /opt/etcd/; \
  ln -s /opt/etcd/etcd /usr/sbin/etcd; \
  ln -s /opt/etcd/etcdctl /usr/sbin/etcdctl;


CMD ["etcd"]

# client port
#EXPOSE 4001
# cluster communication port
#EXPOSE 7001

#CMD ["etcd", "-peer-addr 127.0.0.1:7001", "-addr 127.0.0.1:4001", "-data-dir machines/machine1", "-name machine1"]

# [etcd] examples for launching a cluster
# etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 -data-dir machines/machine1 -name machine1
# etcd -peer-addr 127.0.0.1:7002 -addr 127.0.0.1:4002 -peers 127.0.0.1:7001 -data-dir machines/machine2 -name machine2
# etcd -peer-addr 127.0.0.1:7003 -addr 127.0.0.1:4003 -peers 127.0.0.1:7001 -data-dir machines/machine3 -name machine3
{'fraction_non_alphanumeric': 0.16885315277190013, 'fraction_numerical': 0.12611087600507828, 'mean_word_length': 3.282608695652174, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 20, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3971058', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1004, 'n_words': 206}