forked from vertigobr/ethereum
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.ether-* | ||
.bootnode | ||
setenv.sh | ||
|
This file contains 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
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]" | ||
} | ||
} | ||
} |
This file contains 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
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" | ||
} | ||
} | ||
} |
This file contains 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
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 | ||
|
||
|
This file contains 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
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": {} | ||
} |
This file contains 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
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 |