<commit_before>version: '3'

services:
  kuzzle:
    image: kuzzleio/kuzzle
    ports:
      - "7512:7512"
    cap_add:
      - SYS_PTRACE
    depends_on:
      - redis
      - elasticsearch
    container_name: kuzzle
    environment:
      - kuzzle_services__db__client__host=http://elasticsearch:9200
      - kuzzle_services__internalCache__node__host=redis
      - kuzzle_services__memoryStorage__node__host=redis
      - NODE_ENV=production

  redis:
    image: redis:3.2

  elasticsearch:
    image: kuzzleio/elasticsearch:5.6.10
    ulimits:
      nofile: 65536
    environment:
      - cluster.name=kuzzle
      - "ES_JAVA_OPTS=-Xms256m -Xmx256m"

  doc-tests:
    image: kuzzleio/snippets-tests
    privileged: true
    ports:
      - "9229:9229"
    depends_on:
      - kuzzle
      - doc-runner-node
      - doc-runner-web
      - doc-runner-webpack
    volumes:
      - ../..:/mnt
      - /var/run/docker.sock:/var/run/docker.sock
      - snippets:/var/snippets
    environment:
      - CONFIG_FILE=/mnt/.ci/doc/config.yml

  doc-runner-node:
    image: node:10-alpine
    volumes:
      - ../..:/mnt
      - snippets:/var/snippets
    command: >
      ash -c '
        mkdir -p /var/snippets/node;
        apk add --no-cache curl;
        npm install -g eslint;
        cd /var/snippets/node;
        npm install \
          bluebird \
          /mnt/ \
          eslint \
          eslint-plugin-html \
          eslint-plugin-import \
          eslint-plugin-node \
          eslint-plugin-promise \
          eslint-plugin-standard;
        touch /tmp/runner_ready_to_lint;
        touch /tmp/runner_is_ready;
        tail -f /dev/null
      '

  doc-runner-web:
    image: buildkite/puppeteer:latest
    command: >
      bash -c '
        mkdir -p /var/snippets/web;
        apt-get update;
        apt-get install -y curl;
        npm install -g \
          eslint;
        cd /var/snippets/web;
        cp /mnt/.ci/doc/puppeteer.js /var/snippets/web/;
        npm install \
          /mnt/ \
          puppeteer \
          eslint \
          eslint-plugin-html \
          eslint-plugin-import \
          eslint-plugin-node \
          eslint-plugin-promise \
          eslint-plugin-standard;
        touch /tmp/runner_ready_to_lint;
        touch /tmp/runner_is_ready;
        tail -f /dev/null
      '
    volumes:
      - ../..:/mnt
      - snippets:/var/snippets

  doc-runner-webpack:
    image: buildkite/puppeteer:latest
    command: >
      bash -c '
        mkdir -p /var/snippets/webpack;
        apt-get update;
        apt-get install -y curl;
        npm install -g \
          eslint;
        cd /var/snippets/webpack;
        cp /mnt/.ci/doc/puppeteer.js /var/snippets/webpack/;
        cp /mnt/.ci/doc/webpackBuild.js /var/snippets/webpack/;
        npm install \
          /mnt/ \
          babel-loader \
          @babel/core \
          puppeteer \
          html-webpack-plugin \
          webpack \
          webpack-cli \
          eslint \
          eslint-plugin-html \
          eslint-plugin-import \
          eslint-plugin-node \
          eslint-plugin-promise \
          eslint-plugin-standard;
        touch /tmp/runner_ready_to_lint;
        touch /tmp/runner_is_ready;
        tail -f /dev/null
      '
    volumes:
      - ../..:/mnt
      - snippets:/var/snippets

volumes:
  snippets:
<commit_msg>[test] fixed dependencies in web runner<commit_after>version: '3'

services:
  kuzzle:
    image: kuzzleio/kuzzle
    ports:
      - '7512:7512'
    cap_add:
      - SYS_PTRACE
    depends_on:
      - redis
      - elasticsearch
    container_name: kuzzle
    environment:
      - kuzzle_services__db__client__host=http://elasticsearch:9200
      - kuzzle_services__internalCache__node__host=redis
      - kuzzle_services__memoryStorage__node__host=redis
      - NODE_ENV=production

  redis:
    image: redis:3.2

  elasticsearch:
    image: kuzzleio/elasticsearch:5.6.10
    ulimits:
      nofile: 65536
    environment:
      - cluster.name=kuzzle
      - 'ES_JAVA_OPTS=-Xms256m -Xmx256m'

  doc-tests:
    image: kuzzleio/snippets-tests
    privileged: true
    ports:
      - '9229:9229'
    depends_on:
      - kuzzle
      - doc-runner-node
      - doc-runner-web
      - doc-runner-webpack
    volumes:
      - ../..:/mnt
      - /var/run/docker.sock:/var/run/docker.sock
      - snippets:/var/snippets
    environment:
      - CONFIG_FILE=/mnt/.ci/doc/config.yml

  doc-runner-node:
    image: node:10-alpine
    volumes:
      - ../..:/mnt
      - snippets:/var/snippets
    command: >
      ash -c '
        mkdir -p /var/snippets/node;
        apk add --no-cache curl;
        npm install -g eslint;
        cd /var/snippets/node;
        npm install \
          bluebird \
          /mnt/ \
          eslint \
          eslint-plugin-html \
          eslint-plugin-import \
          eslint-plugin-node \
          eslint-plugin-promise \
          eslint-plugin-standard;
        touch /tmp/runner_ready_to_lint;
        touch /tmp/runner_is_ready;
        tail -f /dev/null
      '

  doc-runner-web:
    image: buildkite/puppeteer:latest
    command: >
      bash -c '
        mkdir -p /var/snippets/web;
        apt-get update;
        apt-get install -y curl;
        npm install -g \
          eslint;
        cd /mnt;
        npm install;
        cd /var/snippets/web;
        cp /mnt/.ci/doc/puppeteer.js /var/snippets/web/;
        npm install \
          /mnt/ \
          puppeteer \
          eslint \
          eslint-plugin-html \
          eslint-plugin-import \
          eslint-plugin-node \
          eslint-plugin-promise \
          eslint-plugin-standard;
        touch /tmp/runner_ready_to_lint;
        touch /tmp/runner_is_ready;
        tail -f /dev/null
      '
    volumes:
      - ../..:/mnt
      - snippets:/var/snippets

  doc-runner-webpack:
    image: buildkite/puppeteer:latest
    command: >
      bash -c '
        mkdir -p /var/snippets/webpack;
        apt-get update;
        apt-get install -y curl;
        npm install -g \
          eslint;
        cd /var/snippets/webpack;
        cp /mnt/.ci/doc/puppeteer.js /var/snippets/webpack/;
        cp /mnt/.ci/doc/webpackBuild.js /var/snippets/webpack/;
        npm install \
          /mnt/ \
          babel-loader \
          @babel/core \
          puppeteer \
          html-webpack-plugin \
          webpack \
          webpack-cli \
          eslint \
          eslint-plugin-html \
          eslint-plugin-import \
          eslint-plugin-node \
          eslint-plugin-promise \
          eslint-plugin-standard;
        touch /tmp/runner_ready_to_lint;
        touch /tmp/runner_is_ready;
        tail -f /dev/null
      '
    volumes:
      - ../..:/mnt
      - snippets:/var/snippets

volumes:
  snippets:
{'fraction_non_alphanumeric': 0.10907749077490775, 'fraction_numerical': 0.011808118081180811, 'mean_word_length': 1.4515195369030391, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4408718', 'n_tokens_mistral': 2434, 'n_tokens_neox': 2273, 'n_words': 385}