-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
2adef28
commit e903786
Showing
4 changed files
with
107 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
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,87 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"name": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name for the container group" | ||
}, | ||
"defaultValue": "loklakserver" | ||
}, | ||
"image": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Container image to deploy." | ||
}, | ||
"defaultValue": "loklak/loklak_server:latest-master" | ||
}, | ||
"port": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Port to open on the container and the public IP address." | ||
}, | ||
"defaultValue": "80" | ||
}, | ||
"cpuCores": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The number of CPU cores to allocate to the container. Must be an integer." | ||
}, | ||
"defaultValue": "1.0" | ||
}, | ||
"memoryInGb": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The amount of memory to allocate to the container in gigabytes." | ||
}, | ||
"defaultValue": "1.5" | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"name": "[parameters('name')]", | ||
"type": "Microsoft.ContainerInstance/containerGroups", | ||
"apiVersion": "2017-08-01-preview", | ||
"location": "[resourceGroup().location]", | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "[parameters('name')]", | ||
"properties": { | ||
"image": "[parameters('image')]", | ||
"ports": [ | ||
{ | ||
"port": "[parameters('port')]" | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": "[parameters('cpuCores')]", | ||
"memoryInGb": "[parameters('memoryInGb')]" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"osType": "Linux", | ||
"ipAddress": { | ||
"type": "Public", | ||
"ports": [ | ||
{ | ||
"protocol": "tcp", | ||
"port": "[parameters('port')]" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"containerIPv4Address":{ | ||
"type": "string", | ||
"value": "[reference(resourceId('Microsoft.ContainerInstance/containerGroups/', parameters('name'))).ipAddress.ip]" | ||
} | ||
} | ||
} |
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,12 @@ | ||
{ | ||
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"name": { | ||
"value": "loklakserver" | ||
}, | ||
"image": { | ||
"value": "loklak/loklak_server:latest-master" | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"itemDisplayName": "loklak Cloud Instance - Linux container with public IP", | ||
"description": "Deploy a single Linux container accessible via a public IP using Azure Container Instances.", | ||
"summary": "This will create a container group with a single Linux container and a publid IP address.", | ||
"githubUsername": "kavithaenair", | ||
"dateUpdated": "2017-08-18" | ||
} |