fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-13 22:43:29 +02:00
parent b182a379af
commit 794bb60dfc

View File

@ -59,6 +59,16 @@ export class DockerService {
}
const ports = [];
for (const port of serviceCreationDescriptor.ports) {
const portArray = port.split(':');
const hostPort = portArray[0];
const containerPort = portArray[1];
ports.push({
"Protocol": "tcp",
"PublishedPort": containerPort,
"TargetPort": hostPort
});
}
const secretArray: any[] = [];
for (const secret of serviceCreationDescriptor.secrets) {