<commit_before>#!/bin/bash
set -eux

rm /vagrant/tmp/storage/* || true
rm /vagrant/tmp/connections.yaml || true
find /vagrant/solar/solar -name '*.pyc' -delete || true

sudo docker stop $(sudo docker ps -q) || true

solar profile -c -t env/test_env -i prf1
solar discover

solar assign -n 'node/node_2 | node/node_1' -r 'resources/docker'
solar assign -n 'node/node_1' -r 'resources/mariadb'
solar assign -n 'node/node_1' -r 'resources/keystone'
solar assign -n 'node/node_1' -r 'resources/haproxy'

solar connect --profile prf1

solar run -a run -t 'resources/docker'

solar run -a run -t 'resource/mariadb_service'
solar run -a run -t 'resource/mariadb_keystone_db'
solar run -a run -t 'resource/mariadb_keystone_user'

solar run -a run -t 'resource/keystone_config'
solar run -a run -t 'resource/keystone_service'

solar run -a run -t 'resource/haproxy_config'
solar run -a run -t 'resources/haproxy'<commit_msg>Use highlevel deployment tool in example.sh<commit_after>#!/bin/bash
set -eux

rm -rf /tmp/tmp*
rm /vagrant/tmp/storage/* || true
rm /vagrant/tmp/connections.yaml || true
echo > /vagrant/state/commit_log || true
echo > /vagrant/state/commited_data || true
echo > /vagrant/state/stage_log || true
find /vagrant/solar/solar -name '*.pyc' -delete || true

sudo docker stop $(sudo docker ps -q) || true
sudo docker rm $(sudo docker ps -qa) || true

solar profile -c -t env/test_env -i prf1
solar discover

solar assign -n 'node/node_2 | node/node_1' -r 'resources/docker'
solar assign -n 'node/node_1' -r 'resources/mariadb'
solar assign -n 'node/node_1' -r 'resources/keystone'
solar assign -n 'node/node_1' -r 'resources/haproxy'

solar connect --profile prf1

./cli.py changes stage
./cli.py changes commit
{'fraction_non_alphanumeric': 0.13430232558139535, 'fraction_numerical': 0.00813953488372093, 'mean_word_length': 3.8072625698324023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6974413', 'n_tokens_mistral': 690, 'n_tokens_neox': 662, 'n_words': 200}