fix(core): update

This commit is contained in:
Philipp Kunz 2019-08-16 18:32:41 +02:00
parent 314cb692ac
commit de54db33ad
3 changed files with 4 additions and 2 deletions

View File

@ -73,7 +73,8 @@ tap.test('should create a service', async () => {
'testlabel': 'hi'
},
Name: 'testService',
networks: [testNetwork]
networks: [testNetwork],
networkAlias: 'testService'
});
});

View File

@ -32,7 +32,7 @@ export class DockerService {
for (const network of serviceCreationDescriptor.networks) {
networkArray.push({
Target: network.Name,
Aliases: []
Aliases: [serviceCreationDescriptor.networkAlias]
});
}

View File

@ -6,4 +6,5 @@ export interface IServiceCreationDescriptor {
Image: string;
Labels: interfaces.TLabels;
networks: DockerNetwork[];
networkAlias: string;
}