Compare commits

...

6 Commits

Author SHA1 Message Date
eb6f7889d0 1.0.48 2019-08-16 21:10:03 +02:00
e39da5fee9 fix(core): update 2019-08-16 21:10:03 +02:00
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
7 changed files with 11 additions and 13 deletions

View File

@ -48,7 +48,7 @@ testLTS:
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
- notpriv - priv
testBuild: testBuild:
stage: test stage: test

2
package-lock.json generated
View File

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

View File

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

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

@ -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) {} public tagImage(newTag) {}
/** /**

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]
}); });
} }
@ -56,4 +56,8 @@ export class DockerService {
this.dockerHost = dockerHostArg; this.dockerHost = dockerHostArg;
Object.assign(this, serviceObject); Object.assign(this, serviceObject);
} }
update() {
// TODO: implemnt updating service
}
} }

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;
} }