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
| data "azurerm_resource_group" "image" { | |
| name = "customimage" | |
| } | |
| data "azurerm_image" "image" { | |
| name = "myCustomImage" | |
| resource_group_name = "${data.azurerm_resource_group.image.name}" | |
| } | |
| resource "azurerm_resource_group" "test" { |
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
| ## Install pre-requisite packages | |
| sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev python-pip | |
| ## Install Ansible and Azure SDKs via pip | |
| pip install ansible[azure] | |
| wget https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/azure_rm.py |
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
| sudo curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -c current -P chefdk | |
| sudo rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| sudo yum update -y | |
| sudo yum install docker-io -y | |
| sudo service docker start | |
| sudo chkconfig docker on | |
| place in .bash_profile |
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
| using cloud shell: | |
| git clone https://github.com/jwkidd3/azure-vote | |
| docker-compose up -d | |
| docker images | |
| docker-compose down | |
| az group create --name <your group> --location <location> | |
| az acr create --resource-group <your group> --name <acrName> --sku Basic |
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
| wget --no-check-certificate https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` | |
| sudo mv docker-compose-`uname -s`-`uname -m` /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| docker-compose --version |
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
| sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: nginx | |
| spec: | |
| containers: | |
| - name: nginx | |
| image: nginx:1.7.9 | |
| ports: | |
| - containerPort: 80 |
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
| var http = require('http'); | |
| var handleRequest = function(request, response) { | |
| console.log('Received request for URL: ' + request.url); | |
| response.writeHead(200); | |
| response.end('Hello World!'); | |
| }; | |
| var www = http.createServer(handleRequest); | |
| www.listen(8080); |
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
| <<This may not be needed>> | |
| curl http://crl.northwesternmutual.com/pki/NM%20Root%20CA2.pem >>/etc/ssl/certs/ca-certificates.crt | |
| VM | |
| https://s3-us-west-1.amazonaws.com/rx-m-vms/Ubuntu_Xenial_Xerus.vbvm.ova | |
| user: user | |
| password: user | |
| sudo apt-get update |
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
| <<Docker Install>> | |
| sudo su | |
| apt-get update && apt-get install -y apt-transport-https | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
| cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
| deb http://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF | |
| apt-get update | |
| apt-get install -y kubectl |