<commit_before>#!/bin/bash
#
# Build jenkins image with docker excutable
#
set -ex

DOCKER_VERSION="17.03"
JENKINS_BASE_IMAGE="jenkins:alpine"
BUILD_IMAGE_NAME="jenkins-docker"

if [[ -e docker/$DOCKER_VERSION ]]; then
  cd docker/$DOCKER_VERSION
else
  echo "Invalid Dockerfile"
  exit 1
fi

sed "s/FROM .*/FROM $JENKINS_BASE_IMAGE/" Dockerfile | \
  docker build -t $BUILD_IMAGE_NAME -<commit_msg>Auto init submodule<commit_after>#!/bin/bash
#
# Build jenkins image with docker excutable
#
set -ex

DOCKER_VERSION="17.03"
JENKINS_BASE_IMAGE="jenkins:alpine"
BUILD_IMAGE_NAME="jenkins-docker"

if [[ ! -e docker/$DOCKER_VERSION ]]; then
  git submodule init
  git submodule update
fi

cd docker/$DOCKER_VERSION

sed "s/FROM .*/FROM $JENKINS_BASE_IMAGE/" Dockerfile | \
  docker build -t $BUILD_IMAGE_NAME -
{'fraction_non_alphanumeric': 0.11771995043370508, 'fraction_numerical': 0.011152416356877323, 'mean_word_length': 4.897810218978102, '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': '5570772', 'n_tokens_mistral': 331, 'n_tokens_neox': 304, 'n_words': 70}