<commit_before>#!/bin/sh

set -v
set -x
set -e

# Arches are the docker arch names
: ${ARCHES:=amd64 ppc64le s390x}
# arm64 waiting on  golang 1.11 (https://github.com/skydive-project/skydive/pull/1188#discussion_r204336060)
: ${DOCKER_IMAGE:=skydive/skydive}
: ${DOCKER_USERNAME:=skydiveproject}
: ${REF:=latest}

TAG=${REF##*/}
VERSION=${TAG#v}

[ -n "$VERSION" ] && DOCKER_TAG=$VERSION || DOCKER_TAG=latest

# See if a server forms part of DOCKER_IMAGE, e.g. DOCKER_IMAGE=registry.ng.bluemix.net:8080/skydive/skydive
if [[ "$DOCKER_IMAGE" =~ /[^/]*/[^/]* ]]; then
    DOCKER_SERVER=${DOCKER_IMAGE%/[^/]*/[^/]*}
fi

if [ -n "$PUSH_RUN" ]; then
    echo "Running in push run mode. Skipping build."
else
    for arch in $ARCHES
    do
        case $arch in
          amd64)
            # x86_64 image<commit_msg>docker/ci: create-docker-image.sh remove bashism<commit_after>#!/bin/sh

set -v
set -x
set -e

# Arches are the docker arch names
: ${ARCHES:=amd64 ppc64le s390x}
# arm64 waiting on  golang 1.11 (https://github.com/skydive-project/skydive/pull/1188#discussion_r204336060)
: ${DOCKER_IMAGE:=skydive/skydive}
: ${DOCKER_USERNAME:=skydiveproject}
: ${REF:=latest}

TAG=${REF##*/}
VERSION=${TAG#v}

[ -n "$VERSION" ] && DOCKER_TAG=$VERSION || DOCKER_TAG=latest

# See if a server forms part of DOCKER_IMAGE, e.g. DOCKER_IMAGE=registry.ng.bluemix.net:8080/skydive/skydive
if [ "${DOCKER_IMAGE%/*/*}" != "${DOCKER_IMAGE}" ]; then
    DOCKER_SERVER=${DOCKER_IMAGE%/*/*}
fi

if [ -n "$PUSH_RUN" ]; then
    echo "Running in push run mode. Skipping build."
else
    for arch in $ARCHES
    do
        case $arch in
          amd64)
            # x86_64 image
{'fraction_non_alphanumeric': 0.16676700782661047, 'fraction_numerical': 0.04214328717639976, 'mean_word_length': 3.694915254237288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4419926', 'n_tokens_mistral': 734, 'n_tokens_neox': 659, 'n_words': 143}