<commit_before>- name: check docker-proxy container
  command: docker ps -a
  register: containers

- name: check docker-proxy running
  command: docker ps
  register: running

- name: pull docker-proxy
  shell: docker pull registry:2

- name: check docker-proxy image
  command: docker images
  register: images

- name: tag docker-proxy image
  shell: docker tag registry:2 docker-proxy
  when: "{{ 'docker-proxy' not in images.stdout }}"

- name: create dir /var/lib/registry-cache
  file: path=/var/lib/registry-cache/
        state=directory
        mode=666

- name: create docker-proxy config.yml
  template: src=config.yml.j2
            dest=/var/lib/registry-cache/config.yml
            mode=666

- name: create docker-proxy
  shell: docker create --net="host" --name=pintostack-docker-proxy-container --restart=always -v /var/lib/registry-cache:/var/lib/registry-cache docker-proxy /var/lib/registry-cache/config.yml 
  when: "{{ 'pintostack-docker-proxy-container' not in containers.stdout }}"
<commit_msg>HOT-FIX docker registry 2.4 vs 2.3.2 incompatible<commit_after>- name: check docker-proxy container
  command: docker ps -a
  register: containers

- name: check docker-proxy running
  command: docker ps
  register: running

- name: pull docker-proxy
  shell: docker pull registry:2.3.1

- name: check docker-proxy image
  command: docker images
  register: images

- name: tag docker-proxy image
  shell: docker tag registry:2.3.1 docker-proxy
  when: "{{ 'docker-proxy' not in images.stdout }}"

- name: create dir /var/lib/registry-cache
  file: path=/var/lib/registry-cache/
        state=directory
        mode=666

- name: create docker-proxy config.yml
  template: src=config.yml.j2
            dest=/var/lib/registry-cache/config.yml
            mode=666

- name: create docker-proxy
  shell: docker create --net="host" --name=pintostack-docker-proxy-container --restart=always -v /var/lib/registry-cache:/var/lib/registry-cache docker-proxy /var/lib/registry-cache/config.yml 
  when: "{{ 'pintostack-docker-proxy-container' not in containers.stdout }}"

{'fraction_non_alphanumeric': 0.11911623439000961, 'fraction_numerical': 0.012968299711815562, 'mean_word_length': 3.294845360824742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4889757', 'n_tokens_mistral': 706, 'n_tokens_neox': 639, 'n_words': 174}