-
-
Save twalker/0efee65a18018efc9520e16b906bc3bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_upgrade: true | |
write_files: | |
- path: /etc/systemd/system/docker.service.d/docker.conf | |
content: | | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd | |
- path: /etc/docker/daemon.json | |
content: | | |
{ | |
"hosts": ["fd://","tcp://127.0.0.1:2375"] | |
} | |
runcmd: | |
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF | |
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 | |
- apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 | |
- apt install default-jre -y | |
- wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
- sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
- apt-get update && apt-get install jenkins -y | |
- AZ_REPO=$(lsb_release -cs) | |
- echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list | |
- apt-get install apt-transport-https | |
- apt-get update && sudo apt-get install azure-cli --allow-unauthenticated -y | |
- curl -sSL https://get.docker.com/ | sh | |
- curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
- chmod +x /usr/local/bin/docker-compose | |
- usermod -aG docker azureops | |
- usermod -aG docker jenkins | |
- touch /var/lib/jenkins/jenkins.install.InstallUtil.lastExecVersion | |
- service jenkins restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment