fix(core): update
This commit is contained in:
parent
784bb22511
commit
601d82ea74
@ -26,8 +26,7 @@ tap.test('should list networks', async () => {
|
|||||||
|
|
||||||
tap.test('should create a network', async () => {
|
tap.test('should create a network', async () => {
|
||||||
const newNetwork = await docker.DockerNetwork.createNetwork(testDockerHost, {
|
const newNetwork = await docker.DockerNetwork.createNetwork(testDockerHost, {
|
||||||
Name: 'webgateway',
|
Name: 'webgateway'
|
||||||
NetworkNumber: 10
|
|
||||||
});
|
});
|
||||||
expect(newNetwork).to.be.instanceOf(docker.DockerNetwork);
|
expect(newNetwork).to.be.instanceOf(docker.DockerNetwork);
|
||||||
expect(newNetwork.Name).to.equal('webgateway');
|
expect(newNetwork.Name).to.equal('webgateway');
|
||||||
@ -85,8 +84,7 @@ tap.test('should list all services', async tools => {
|
|||||||
|
|
||||||
tap.test('should create a service', async () => {
|
tap.test('should create a service', async () => {
|
||||||
const testNetwork = await docker.DockerNetwork.createNetwork(testDockerHost, {
|
const testNetwork = await docker.DockerNetwork.createNetwork(testDockerHost, {
|
||||||
Name: 'testNetwork',
|
Name: 'testNetwork'
|
||||||
NetworkNumber: 11
|
|
||||||
});
|
});
|
||||||
const testSecret = await docker.DockerSecret.createSecret(testDockerHost, {
|
const testSecret = await docker.DockerSecret.createSecret(testDockerHost, {
|
||||||
name: 'testSecret',
|
name: 'testSecret',
|
||||||
|
@ -30,7 +30,7 @@ export class DockerNetwork {
|
|||||||
CheckDuplicate: true,
|
CheckDuplicate: true,
|
||||||
Driver: 'overlay',
|
Driver: 'overlay',
|
||||||
EnableIPv6: true,
|
EnableIPv6: true,
|
||||||
IPAM: {
|
/* IPAM: {
|
||||||
Driver: 'default',
|
Driver: 'default',
|
||||||
Config: [
|
Config: [
|
||||||
{
|
{
|
||||||
@ -39,8 +39,8 @@ export class DockerNetwork {
|
|||||||
Gateway: `172.20.${networkCreationDescriptor.NetworkNumber}.11`
|
Gateway: `172.20.${networkCreationDescriptor.NetworkNumber}.11`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}, */
|
||||||
Internal: true,
|
Internal: false,
|
||||||
Attachable: true,
|
Attachable: true,
|
||||||
Ingress: false
|
Ingress: false
|
||||||
});
|
});
|
||||||
|
@ -129,9 +129,9 @@ export class DockerService {
|
|||||||
Labels: labels,
|
Labels: labels,
|
||||||
Secrets: secretArray,
|
Secrets: secretArray,
|
||||||
Mounts: mounts,
|
Mounts: mounts,
|
||||||
DNSConfig: {
|
/* DNSConfig: {
|
||||||
Nameservers: ['1.1.1.1']
|
Nameservers: ['1.1.1.1']
|
||||||
}
|
} */
|
||||||
},
|
},
|
||||||
UpdateConfig: {
|
UpdateConfig: {
|
||||||
Parallelism: 0,
|
Parallelism: 0,
|
||||||
|
@ -3,5 +3,4 @@
|
|||||||
*/
|
*/
|
||||||
export interface INetworkCreationDescriptor {
|
export interface INetworkCreationDescriptor {
|
||||||
Name: string;
|
Name: string;
|
||||||
NetworkNumber: number;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user