view workers/bin/installInTemplate.sh @ 19:d4f186655bcc

lots of tweaking, reached the 80/20 point
author Henry S. Thompson <ht@markup.co.uk>
date Sat, 20 Oct 2018 16:11:29 +0000
parents 9631fca89cc6
children cc065b2a2543
line wrap: on
line source

#!/bin/bash
sudo apt-get -y install python3 parallel psmisc jq mercurial curl
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jessie main" |\
    sudo tee /etc/apt/sources.list.d/azure-cli.list
sudo apt-get -y --force-yes install apt-transport-https
sudo apt-get -y update
sudo apt-get -y install azure-cli
sudo adduser --disabled-password -GECOS "CC master" cc
if [ ! -d ~cc/.ssh ]
then
 sudo su -c 'ssh-keygen -t rsa -N "" -f /home/cc/.ssh/id_rsa' cc
fi
sudo cat ~cc/.ssh/id_rsa.pub