<commit_before>#!/bin/bash
if ! which docker 1>/dev/null; then
	echo "### Instalo docker ###"
	curl -sSL https://get.docker.com/ | sh
	sudo usermod -aG docker $USER
fi

if ! which docker-compose 1>/dev/null; then
	echo "### Instalo Docker compose ###"
	sudo su -c 'curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose'
	sudo su -c 'chmod +x /usr/local/bin/docker-compose'
fi

echo "### Instalo utilidades ###"
sudo apt-get install -y --no-install-recommends mc htop nano ncdu

echo "### Configuro logrotate para docker ###"
sudo su -c 'echo "/var/lib/docker/containers/*/*.log {
	daily
	rotate 7rm dock
	copytruncate
	missingok
	compress
	notifempty
}" > /etc/logrotate.d/docker'

echo "### Agrego deploy key ###"
mkdir -p ~/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDtT9e4pDwpGZ9FDuuS5HWTY6BV2NgmNauPRzM8rX6cpK8S5gCYMSwJg4NxTPH+n9T9pSb2/2OsFuK6XoDVt4VWaCc8a1HwcXzkfS7HQJFV8t2hWHgvrUB09jkchQPdhqt9iLTo2jsErHfrZ2VpRhB+d2C125g0LYsuuvxXl9OIYzDPM/b557TBe5WfmMgRqMysLgd6YsXohR8Zfa3yZIjhZpsVG4c8NQzXdjnhwmtP1QdNlMpTX0L5MA4p9Wqu5L2JEFlzfWWJl6NnRr4gGAaVhnsIz0utpW5/ppR+7N9EehxORd6IiKfFt2sN3dfD0yMA1eaF/7fBLMaKVKcKaEJB deploy" > ~/.ssh/authorized_keys

echo "** Opcional: Agregar el host a Rancher **"<commit_msg>add curl and git on install process<commit_after>#!/bin/bash
#echo "### Instalo utilidades ###"
sudo apt-get install -y --no-install-recommends mc htop nano ncdu git curl

if ! which docker 1>/dev/null; then
	echo "### Instalo docker ###"
	curl -sSL https://get.docker.com/ | sh
	sudo usermod -aG docker $USER
fi

if ! which docker-compose 1>/dev/null; then
	echo "### Instalo Docker compose ###"
	sudo su -c 'curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose'
	sudo su -c 'chmod +x /usr/local/bin/docker-compose'
fi

echo "### Configuro logrotate para docker ###"
sudo su -c 'echo "/var/lib/docker/containers/*/*.log {
	daily
	rotate 7rm dock
	copytruncate
	missingok
	compress
	notifempty
}" > /etc/logrotate.d/docker'

echo "### Agrego deploy key ###"
mkdir -p ~/.ssh
echo "ssh-rsa A<KEY>7TBe5WfmMgRqMysLgd6YsXohR8Zfa3yZIjhZpsVG4c8NQzXdjnhwmtP1QdNlMpTX0L5MA4p9Wqu5L2JEFlzfWWJl6NnRr4gGAaVhnsIz0utpW5/ppR+7N9EehxORd6IiKfFt2sN3dfD0yMA1eaF/7fBLMaKVKcKaEJB deploy" > ~/.ssh/authorized_keys

echo "** Opcional: Agregar el host a Rancher **"
{'fraction_non_alphanumeric': 0.13280926768721554, 'fraction_numerical': 0.0430285477865122, 'mean_word_length': 4.883211678832117, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 14, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4355905', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1128, 'n_words': 196}