<commit_before>#!/bin/sh

\cp ../quickstart/demo-java-job.jar ./demo/

#get the latest snapshot version
VERSION=LATEST
REPO=snapshots

EXECUTOR_DL_URL=https://oss.sonatype.org/service/local/artifact/maven/content?r=${REPO}&g=com.vip.saturn&a=saturn-executor&v=${VERSION}&e=zip&c=zip
CONSOLE_DL_URL=https://oss.sonatype.org/service/local/artifact/maven/content?r=${REPO}&g=com.vip.saturn&a=saturn-console&v=${VERSION}

docker build --build-arg SATURN_EXECUTOR_DOWNLOAD_URL=$EXECUTOR_DL_URL -t saturn/saturn-executor:master-SNAPSHOT ./saturn-executor/
docker build --build-arg SATURN_CONSOLE_DOWNLOAD_URL=$EXECUTOR_DL_URL -t saturn/saturn-console:master-SNAPSHOT ./saturn-console/
docker build --build-arg SATURN_EXECUTOR_DOWNLOAD_URL=$EXECUTOR_DL_URL -t saturn/demo-init ./demo/

docker-compose up
<commit_msg>change to use v2.0.0 release<commit_after>#!/bin/sh

\cp ../quickstart/demo-java-job.jar ./demo/

#get the latest snapshot version
#VERSION=LATEST
#REPO=snapshots

#get the 2.0.0 release
VERSION=2.0.0
REPO=releases


EXECUTOR_DL_URL=https://oss.sonatype.org/service/local/artifact/maven/content?r=${REPO}&g=com.vip.saturn&a=saturn-executor&v=${VERSION}&e=zip&c=zip
CONSOLE_DL_URL=https://oss.sonatype.org/service/local/artifact/maven/content?r=${REPO}&g=com.vip.saturn&a=saturn-console&v=${VERSION}

docker build --build-arg SATURN_EXECUTOR_DOWNLOAD_URL=$EXECUTOR_DL_URL -t saturn/saturn-executor:master-SNAPSHOT ./saturn-executor/
docker build --build-arg SATURN_CONSOLE_DOWNLOAD_URL=$EXECUTOR_DL_URL -t saturn/saturn-console:master-SNAPSHOT ./saturn-console/
docker build --build-arg SATURN_EXECUTOR_DOWNLOAD_URL=$EXECUTOR_DL_URL -t saturn/demo-init ./demo/

docker-compose up

{'fraction_non_alphanumeric': 0.14988151658767773, 'fraction_numerical': 0.00533175355450237, 'mean_word_length': 6.066945606694561, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1538350', 'n_tokens_mistral': 690, 'n_tokens_neox': 663, 'n_words': 82}