<commit_before>on:
  tags: true

sudo: required

services:
  - docker

before_install:
  - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"

script:
  - ALPINE_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}" -f Dockerfile . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Alpine

  - ALPINE_EDGE_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}-alpine_edge" -f Dockerfile.alpine-edge . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Alpine Edge

  - ARCH_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}-arch" -f Dockerfile.arch . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Arch

  - GOLANG_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}-golang" -f Dockerfile.golang . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Golang
<commit_msg>Docker: Add flattening again! But this time, we make it tag-flat, to not break everything.<commit_after>on:
  tags: true

sudo: required

services:
  - docker

before_install:
  - docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"

script:
  - ALPINE_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}" -f Dockerfile . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Alpine
  - ALPINE_CNTID=$(docker run -d --entrypoint /bin/sh "$ALPINE_IMGID" true) # Flattening of Alpine image
  - docker export $ALPINE_CNTID | docker import - "carbonsrv/carbon:${TRAVIS_TAG:-latest}-flat"
  - docker export $ALPINE_CNTID | docker import - "carbonsrv/carbon:${TRAVIS_TAG:-latest}-alpine-flat"
  - docker rm $ALPINE_CNTID

  - ALPINE_EDGE_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}-alpine_edge" -f Dockerfile.alpine-edge . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Alpine Edge
  - ALPINE_EDGE_CNTID=$(docker run -d --entrypoint /bin/sh "$ALPINE_EDGE_IMGID" true) # Flattening of Alpine Edge image
  - docker export $ALPINE_EDGE_CNTID | docker import - "carbonsrv/carbon:${TRAVIS_TAG:-latest}-alpine_edge-flat"
  - docker rm $ALPINE_EDGE_CNTID

  - ARCH_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}-arch" -f Dockerfile.arch . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Arch
  - ARCH_CNTID=$(docker run -d --entrypoint /bin/sh "$ARCH_IMGID" true) # Flattening of Arch image
  - docker export $ARCH_CNTID | docker import - "carbonsrv/carbon:${TRAVIS_TAG:-latest}-arch-flat"
  - docker rm $ARCH_CNTID

  - GOLANG_IMGID=$(docker build -t "carbonsrv/carbon:${TRAVIS_TAG:-latest}-golang" -f Dockerfile.golang . | tee /dev/stderr | tail -1 | sed 's/.*Successfully built \(.*\)$/\1/') # Build with Golang
  - GOLANG_CNTID=$(docker run -d --entrypoint /bin/sh "$GOLANG_IMGID" true) # Flattening of Arch image
  - docker export $GOLANG_CNTID | docker import - "carbonsrv/carbon:${TRAVIS_TAG:-latest}-golang-flat"
  - docker rm $GOLANG_CNTID

{'fraction_non_alphanumeric': 0.16909620991253643, 'fraction_numerical': 0.0051830255911888565, 'mean_word_length': 3.8706624605678233, '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': '3973258', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1146, 'n_words': 267}