Add support for windows containers

This commit is contained in:
Marcos Lilljedahl
2017-08-10 18:55:32 -03:00
parent 7f17a7e21d
commit 30d709760c
3 changed files with 13 additions and 4 deletions

View File

@@ -27,6 +27,7 @@
$scope.isAlive = true;
$scope.ttl = '--:--:--';
$scope.connected = true;
$scope.type = {windows: false};
$scope.isInstanceBeingCreated = false;
$scope.newInstanceBtnText = '+ Add new instance';
$scope.deleteInstanceBtnText = 'Delete';
@@ -108,10 +109,11 @@
$scope.newInstance = function() {
updateNewInstanceBtnState(true);
var instanceType = $scope.type.windows ? 'windows': 'linux';
$http({
method: 'POST',
url: '/sessions/' + $scope.sessionId + '/instances',
data : { ImageName : InstanceService.getDesiredImage() }
data : { ImageName : InstanceService.getDesiredImage(), type: instanceType }
}).then(function(response) {
var i = $scope.upsertInstance(response.data);
$scope.showInstance(i);