<commit_before>docker_deps:
  pkg.installed:
    - pkgs:
      - apt-transport-https
      - ca-certificates

docker_repo:
  pkgrepo.managed:
    - name: deb https://apt.dockerproject.org/repo ubuntu-{{ grains['oscodename'] }} main
    - file: /etc/apt/sources.list.d/docker.list
    - keyid: <KEY>
    - keyserver: hkp://p80.pool.sks-keyservers.net:80

linux-image-extra-{{ grains['kernelrelease'] }}:
  pkg.installed

docker-engine:
  pkg.installed:
    - require:
      - pkg: docker_deps
      - pkgrepo: docker_repo
      - pkg: linux-image-extra-{{ grains['kernelrelease'] }}

# https://docs.docker.com/compose/install/
/usr/local/bin/docker-compose:
  file.managed:
    - mode: 755
    - source: https://github.com/docker/compose/releases/download/1.9.0/docker-compose-{{ grains['kernel'] }}-{{ grains['cpuarch'] }}
    - source_hash: sha512=4a44b4035f321ee2089ca1265a2f853b6a678ccbb18f0de91f5d9aef80dfbdc23b1598f13e8db0149b36417e561ca8ae748b7c7a9c7bf1ae97549cef7628bb7d
<commit_msg>docker-py for salt docker management<commit_after>docker_deps:
  pkg.installed:
    - pkgs:
      - apt-transport-https
      - ca-certificates

docker_repo:
  pkgrepo.managed:
    - name: deb https://apt.dockerproject.org/repo ubuntu-{{ grains['oscodename'] }} main
    - file: /etc/apt/sources.list.d/docker.list
    - keyid: <KEY>
    - keyserver: hkp://p80.pool.sks-keyservers.net:80

linux-image-extra-{{ grains['kernelrelease'] }}:
  pkg.installed

docker-engine:
  pkg.installed:
    - require:
      - pkg: docker_deps
      - pkgrepo: docker_repo
      - pkg: linux-image-extra-{{ grains['kernelrelease'] }}

# https://docs.docker.com/compose/install/
/usr/local/bin/docker-compose:
  file.managed:
    - mode: 755
    - source: https://github.com/docker/compose/releases/download/1.9.0/docker-compose-{{ grains['kernel'] }}-{{ grains['cpuarch'] }}
    - source_hash: sha512=4a44b4035f321ee2089ca1265a2f853b6a678ccbb18f0de91f5d9aef80dfbdc23b1598f13e8db0149b36417e561ca8ae748b7c7a9c7bf1ae97549cef7628bb7d

# Salt needs this to manage containers
docker-py:
  pip.installed


{'fraction_non_alphanumeric': 0.14437469821342347, 'fraction_numerical': 0.08498309995171414, 'mean_word_length': 3.5538461538461537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3563406', 'n_tokens_mistral': 941, 'n_tokens_neox': 795, 'n_words': 98}