Last active
January 14, 2017 21:55
-
-
Save adastreamer/df659412f6915c6edf7b021b76100423 to your computer and use it in GitHub Desktop.
VM First Startup Configuration for Jenkins [Azure]
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
# General Configuration: | |
# Name: ubuntu-16-04-d4-v2 | |
# Labels: docker | |
# Virtual Machine Size: Standard_D4_v2 | |
# Storage Account Name: [leave blank] | |
# Retention Time: 0 | |
# | |
# Image Configuration: | |
# Image Reference: | |
# Image Publisher: canonical | |
# Image Offer: ubuntuserver | |
# Image Sku: 16.04.0-LTS | |
# Image Version: latest | |
# OS Type: linux | |
# Launch Method: SSH | |
# | |
# VM First Startup Configuration: | |
# Initialization Script: | |
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo cat /etc/apt/sources.list.d/docker.list | |
sudo apt-get -y update | |
sudo apt-get install -y openjdk-8-jre apt-transport-https ca-certificates linux-image-extra-virtual docker-engine | |
sudo service docker start | |
sudo usermod -aG docker dokkur |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment