<commit_before>#!/usr/bin/env bash

echo "Logging into ECR..."
eval `aws ecr get-login`

cd ../../../infrastructure

ECR_TAG=`terraform output ecr_repository_url`
LOCAL_TAG="webapptest_test_agent"

echo "Tagging and pushing tag"
docker tag $LOCAL_TAG $ECR_TAG
docker push $ECR_TAG
<commit_msg>Get CWD in agent Docker deploy<commit_after>#!/usr/bin/env bash

echo "Logging into ECR..."
eval `aws ecr get-login`

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";
cd $DIR/../../infrastructure

ECR_TAG=`terraform output ecr_repository_url`
LOCAL_TAG="webapptest_test_agent"

echo "Tagging and pushing tag"
docker tag $LOCAL_TAG $ECR_TAG
docker push $ECR_TAG

{'fraction_non_alphanumeric': 0.13897280966767372, 'fraction_numerical': 0.0015105740181268882, 'mean_word_length': 5.08256880733945, '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': '7045513', 'n_tokens_mistral': 256, 'n_tokens_neox': 240, 'n_words': 66}