forked from asreview/asreview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add one-click-deploy buttons for cloud providers (asreview#664)
- Loading branch information
1 parent
e5fa96e
commit 4a10377
Showing
4 changed files
with
160 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,26 @@ | ||
{ | ||
"name": "ASReview", | ||
"description": "Active learning for Systematic Reviews", | ||
"keywords": [ | ||
"active learning", | ||
"systematic reviews" | ||
], | ||
"website": "https://asreview.nl/", | ||
"repository": "https://github.com/asreview/asreview/docker/asreview-lab/", | ||
"logo": "https://github.com/asreview/asreview/blob/master/images/RepoCardGithub-1280x640px.png", | ||
"stack": "container", | ||
"env": { | ||
"ASREVIEW_ONE_CLICK_DEPLOY": { | ||
"description": "ASReview One Click Deploy Environmental Flag", | ||
"value": "1", | ||
"required": false | ||
} | ||
}, | ||
"options": { | ||
"allow-unauthenticated": false, | ||
"memory": "512Mi", | ||
"cpu": "2", | ||
"port": "80", | ||
"http2": false | ||
} | ||
} |
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,112 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"name": { | ||
"type": "string", | ||
"defaultValue": "asreview-container-group", | ||
"metadata": { | ||
"description": "Name for the container group" | ||
} | ||
}, | ||
"containername": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name for the container" | ||
} | ||
}, | ||
"image": { | ||
"type": "string", | ||
"defaultValue": "asreview/asreview:latest", | ||
"metadata": { | ||
"description": "Container image to deploy. Should be of the form repoName/imagename:tag for images stored in public Docker Hub, or a fully qualified URI for other registries. Images from private registries require additional registry credentials." | ||
} | ||
}, | ||
"port": { | ||
"type": "string", | ||
"defaultValue": "5000", | ||
"metadata": { | ||
"description": "Port to open on the container and the public IP address." | ||
} | ||
}, | ||
"cpuCores": { | ||
"type": "string", | ||
"defaultValue": "1.0", | ||
"metadata": { | ||
"description": "The number of CPU cores to allocate to the container." | ||
} | ||
}, | ||
"memoryInGb": { | ||
"type": "string", | ||
"defaultValue": "1.5", | ||
"metadata": { | ||
"description": "The amount of memory to allocate to the container in gigabytes." | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Location for all resources." | ||
} | ||
}, | ||
"restartPolicy": { | ||
"type": "string", | ||
"defaultValue": "always", | ||
"allowedValues": [ | ||
"never", | ||
"always", | ||
"onfailure" | ||
], | ||
"metadata": { | ||
"description": "The behavior of Azure runtime if container has stopped." | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.ContainerInstance/containerGroups", | ||
"apiVersion": "2019-12-01", | ||
"name": "[parameters('name')]", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "[parameters('name')]", | ||
"properties": { | ||
"image": "[parameters('image')]", | ||
"ports": [ | ||
{ | ||
"port": "[parameters('port')]" | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": "[parameters('cpuCores')]", | ||
"memoryInGb": "[parameters('memoryInGb')]" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"osType": "Linux", | ||
"restartPolicy": "[parameters('restartPolicy')]", | ||
"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": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"containername": { | ||
"value": "GEN-UNIQUE" | ||
}, | ||
"volumename": { | ||
"value": "GEN-UNIQUE" | ||
} | ||
} | ||
} |