Compare commits

...

4 Commits

Author SHA1 Message Date
b07628bb0b 1.0.47 2019-08-16 21:07:59 +02:00
5815f9b202 fix(core): update 2019-08-16 21:07:59 +02:00
846ea9997e 1.0.46 2019-08-16 18:32:42 +02:00
de54db33ad fix(core): update 2019-08-16 18:32:41 +02:00
6 changed files with 10 additions and 12 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/docker",
"version": "1.0.45",
"version": "1.0.47",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/docker",
"version": "1.0.45",
"version": "1.0.47",
"description": "easy communication with docker remote api from node, TypeScript ready",
"private": false,
"main": "dist/index.js",

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

@ -112,14 +112,6 @@ export class DockerImage {
});
}
/**
* returns a boolean wether the image has a upstream image
*/
public isUpstreamImage(): boolean {
// TODO: implement isUpastreamImage
return this.RepoTags.length > 0;
}
public tagImage(newTag) {}
/**

View File

@ -32,7 +32,7 @@ export class DockerService {
for (const network of serviceCreationDescriptor.networks) {
networkArray.push({
Target: network.Name,
Aliases: []
Aliases: [serviceCreationDescriptor.networkAlias]
});
}
@ -56,4 +56,8 @@ export class DockerService {
this.dockerHost = dockerHostArg;
Object.assign(this, serviceObject);
}
update() {
// TODO: implemnt updating service
}
}

View File

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