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' 'testlabel': 'hi'
}, },
Name: 'testService', Name: 'testService',
networks: [testNetwork] networks: [testNetwork],
networkAlias: 'testService'
}); });
}); });

View File

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

View File

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