<commit_before># Configure SSH access
# source: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
#
# ----------

useradd -ms /bin/bash serenata_de_amor
git clone --recursive https://github.com/datasciencebr/whistleblower.git /home/serenata_de_amor/whistleblower
chown -hR serenata_de_amor /home/serenata_de_amor/whistleblower

# Setup auto restart services after VM restart
cat >/home/serenata_de_amor/server.sh <<EOL
touch /home/serenata_de_amor/running.txt

sudo -u serenata_de_amor bash << EOF

cd /home/serenata_de_amor/whistleblower
nohup docker-compose up --ignore-override &

EOF
EOL
(crontab -l ; echo "@reboot /home/serenata_de_amor/server.sh") | sort - | uniq - | crontab -

# Install Docker
# source: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update<commit_msg>Change way docker runs the app on production<commit_after># Configure SSH access
# source: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
#
# ----------

useradd -ms /bin/bash serenata_de_amor
git clone --recursive https://github.com/datasciencebr/whistleblower.git /home/serenata_de_amor/whistleblower
chown -hR serenata_de_amor /home/serenata_de_amor/whistleblower

# Setup auto restart services after VM restart
cat >/home/serenata_de_amor/server.sh <<EOL
touch /home/serenata_de_amor/running.txt

sudo -u serenata_de_amor bash << EOF

cd /home/serenata_de_amor/whistleblower
nohup docker-compose up -d --ignore-override

EOF
EOL
(crontab -l ; echo "@reboot /home/serenata_de_amor/server.sh") | sort - | uniq - | crontab -

# Install Docker
# source: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
{'fraction_non_alphanumeric': 0.13135985198889916, 'fraction_numerical': 0.009250693802035153, 'mean_word_length': 4.340740740740741, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5795454', 'n_tokens_mistral': 876, 'n_tokens_neox': 790, 'n_words': 153}