<commit_before>VERSION=0.9.22

export DISABLE_SYSLOG=1
export DISABLE_SSH=1
export DISABLE_CRON=0

sudo make build NAME=baseimage

docker tag baseimage:${VERSION} localhost:5000/baseimage:${VERSION}
docker push localhost:5000/baseimage:${VERSION}<commit_msg>Traget registry can be change by commandline parameter<commit_after>#!/bin/bash

VERSION=0.9.22

TARGET_REGISTRY=$1
[ -z "${TARGET_REGISTRY}" ] && TARGET_REGISTRY=localhost:5000

if [ ${EUID} -ne 0 ]; then
  echo "Must be run as root!"
  exit 1
fi

# Build docker image
export DISABLE_SYSLOG=1
export DISABLE_SSH=1
export DISABLE_CRON=0

make build NAME=baseimage

# Push docker image
docker tag baseimage:${VERSION} ${TARGET_REGISTRY}/baseimage:${VERSION}
docker push ${TARGET_REGISTRY}/baseimage:${VERSION}
{'fraction_non_alphanumeric': 0.1122715404699739, 'fraction_numerical': 0.037859007832898174, 'mean_word_length': 6.826530612244898, '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': '7158337', 'n_tokens_mistral': 296, 'n_tokens_neox': 262, 'n_words': 66}