-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathazuredeploy.json
65 lines (65 loc) · 2.57 KB
/
azuredeploy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"aci_name": {
"defaultValue": "monero-aci",
"type": "string"
},
"mining_pool_address": {
"defaultValue": "pool.supportxmr.com:443",
"type": "string",
"description": "The hostname and port of the mining pool."
},
"mining_pool_user": {
"defaultValue": "48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD",
"type": "string",
"description": "The username parameter for the pool. Many pools expect your Monero wallet address in this field."
},
"mining_pool_password": {
"defaultValue": "aci_worker",
"type": "string",
"description": "The password parameter for the pool. This may be optional, or used as a miner display name (e.g. for SupportXMR)."
}
},
"resources": [
{
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2018-10-01",
"name": "[parameters('aci_name')]",
"location": "[resourceGroup().location]",
"properties": {
"containers": [
{
"name": "[parameters('aci_name')]",
"properties": {
"image": "miningcontainers/xmrig:latest",
"command": [
"./xmrig",
"-k",
"--tls",
"--no-color",
"-o",
"[parameters('mining_pool_address')]",
"-u",
"[parameters('mining_pool_user')]",
"-p",
"[parameters('mining_pool_password')]"
],
"ports": [],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 4,
"cpu": 4
}
}
}
}
],
"restartPolicy": "Always",
"osType": "Linux"
}
}
]
}