Skip to content

Commit

Permalink
azure
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevtg committed Sep 14, 2016
1 parent d34533d commit ef33863
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.ether-*
.bootnode
setenv.sh

27 changes: 27 additions & 0 deletions azure/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"dnsNamePrefix": {
"value": "ethereum-playground"
},
"agentCount": {
"value": 3
},
"agentVMSize" : {
"value": "Standard_A2"
},
"linuxAdminUsername": {
"value": "etheruser"
},
"orchestratorType": {
"value": "Swarm"
},
"masterCount": {
"value": 1
},
"sshRSAPublicKey": {
"value": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCm5YGmSyX6wABwZnWZS+fE3ECa8h8061wsV08hjQh4SRn6zPAfQHQQNdTug7zehBXXXeMyYI76DG+8qdKaEqY94mrVHAoKoGASrOZUoAdeK5vh4Gm9qbJAvPWkmJ9u85c7KL1a8YmlfNAlxfpCzLnNSGuJqC6usPhCz+O6VYNw9M+pvPtKiqgoHztrJOvbKKoDIktD4eS/+66HefqEqsHtXKRrg9vmA6589/m7ajYWcvSwwQM0IxDRp1kuOVjmWK6YxS5+q4l3VoP2T0my/Lu80IC+4RGNNvd5RryVZbLHTtfwLOjrm+ONF/6xdgdJNzGMl9Q+WV6sZsPimb7/lLhExNuuiJaYNiAKahyMN65ZWqu3RiwkfNvANo/dL11rZfuVjxiSTChsKyuEVJvLmWGcTrXDs4L+5olt2x3ugr0QMDurZwa5M1FilLZqYn0eVkxBgsS/U5JYI7lwQoldZba7Y3BlXPtsg8Dl3iLH0xrK7pGVmPmTLkWXh5oQrZcN2bGWZRwMCudLFgst0V5nFBtdGMrTTsRDu9SSAyQQJ+nDF3Ihdf3W0vKxaIHHhwVMeYqRNyMFy6oqGaPbzVn5C0zpU8PjVwecF+nxeCG8iaEPRRi2CZQARCOvPl/iq57D/AD7Umi5OldSZlrunv8mYQMp06TGOWM4R/AQzmX3C5Sgbw== [email protected]"
}
}
}
27 changes: 27 additions & 0 deletions azure/azuredeploy.parameters.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"dnsNamePrefix": {
"value": "$AZURE_DNS_PREFIX"
},
"agentCount": {
"value": 3
},
"agentVMSize" : {
"value": "Standard_A2"
},
"linuxAdminUsername": {
"value": "etheruser"
},
"orchestratorType": {
"value": "Swarm"
},
"masterCount": {
"value": 1
},
"sshRSAPublicKey": {
"value": "$AZURE_PUB_KEY"
}
}
}
9 changes: 9 additions & 0 deletions azure/install-azure-driver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
sudo apt-get install -y cifs-utils
sudo wget https://github.com/Azure/azurefile-dockervolumedriver/releases/download/v0.5.0/azurefile-dockervolumedriver -q -O /usr/bin/azurefile-dockervolumedriver
sudo wget https://raw.githubusercontent.com/Azure/azurefile-dockervolumedriver/master/contrib/init/upstart/azurefile-dockervolumedriver.conf -q -O /etc/init/azurefile-dockervolumedriver.conf
sudo wget https://raw.githubusercontent.com/Azure/azurefile-dockervolumedriver/master/contrib/init/upstart/azurefile-dockervolumedriver.default -q -O /etc/default/azurefile-dockervolumedriver
sudo initctl reload-configuration
sudo initctl start azurefile-dockervolumedriver


45 changes: 45 additions & 0 deletions parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"provisioningState": "",
"orchestratorProfile": {
"orchestratorType": null
},
"masterProfile": {
"count": null,
"dnsPrefix": "",
"fqdn": ""
},
"agentPoolProfiles": [
{
"name": "",
"count": null,
"vmSize": "",
"dnsPrefix": "",
"fqdn": ""
}
],
"windowsProfile": {
"adminUsername": "",
"adminPassword": ""
},
"linuxProfile": {
"adminUsername": "",
"ssh": {
"publicKeys": [
{
"keyData": ""
}
]
}
},
"diagnosticsProfile": {
"vmDiagnostics": {
"enabled": null,
"storageUri": ""
}
},
"id": null,
"name": null,
"type": null,
"location": "",
"tags": {}
}
19 changes: 19 additions & 0 deletions setenv.sh.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# UNCOMMENT AND COMPLETE FOR CARINA
export CARINA_USERNAME=user@mail
export CARINA_APIKEY=thisisonlyyours
export CARINA_CLUSTER=ethereum

# UNCOMMENT BELOW AND COMPLETE FOR AZURE CLI
export AZURE_TEMPLATE_URL=https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-acs-swarm/azuredeploy.json
export AZURE_RESOURCE_GROUP="EthereumPlayground"
export AZURE_DEPLOYMENT_NAME="EthereumSwarm"
export AZURE_LOCATION=eastus
# the DNS prefix you should change
export AZURE_DNS_PREFIX=ethereum-playground
export AZURE_DEPLOY_JSON=`cat ./azure/azuredeploy.parameters.json`
# UNCOMMENT TO READ PUBLIC KEY INTO VAR AND SUBST IN PARAMETER FILE
export AZURE_PUB_KEY=`cat ~/.ssh/id_rsa.pub`
sed "s%\$AZURE_PUB_KEY%$AZURE_PUB_KEY%" azure/azuredeploy.parameters.json.template | \
sed "s%\$AZURE_DNS_PREFIX%$AZURE_DNS_PREFIX%" > azure/azuredeploy.parameters.json

0 comments on commit ef33863

Please sign in to comment.