fix(core): update
This commit is contained in:
parent
a48e1e035e
commit
5c6c06dee6
@ -103,7 +103,8 @@ tap.test('should create a service', async () => {
|
||||
name: 'testService',
|
||||
networks: [testNetwork],
|
||||
networkAlias: 'testService',
|
||||
secrets: [testSecret]
|
||||
secrets: [testSecret],
|
||||
ports: []
|
||||
});
|
||||
|
||||
await testSecret.update(`{"updated": "socool"}`);
|
||||
|
@ -58,6 +58,8 @@ export class DockerService {
|
||||
});
|
||||
}
|
||||
|
||||
const ports = [];
|
||||
|
||||
const secretArray: any[] = [];
|
||||
for (const secret of serviceCreationDescriptor.secrets) {
|
||||
secretArray.push({
|
||||
@ -90,7 +92,10 @@ export class DockerService {
|
||||
ForceUpdate: 1
|
||||
},
|
||||
Labels: labels,
|
||||
Networks: networkArray
|
||||
Networks: networkArray,
|
||||
EndpointSpec: {
|
||||
Ports: ports
|
||||
}
|
||||
});
|
||||
|
||||
const createdService = await DockerService.getServiceByName(
|
||||
|
@ -10,4 +10,5 @@ export interface IServiceCreationDescriptor {
|
||||
networks: DockerNetwork[];
|
||||
networkAlias: string;
|
||||
secrets: DockerSecret[];
|
||||
ports: string[];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user