-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Issue #85 and set version to 2.6.7
- Loading branch information
Mario Toffia
committed
May 17, 2019
1 parent
8946d91
commit 4fe5c72
Showing
10 changed files
with
420 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Ductus.FluentDocker.Tests/Resources/ComposeTests/MongoDbAndNetwork/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3.3' | ||
|
||
services: | ||
mongodb: | ||
image: mongo:latest | ||
volumes: | ||
- mongodb-data:/data | ||
command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null | ||
expose: | ||
- 27017 | ||
networks: | ||
- mongodb-network | ||
|
||
volumes: | ||
mongodb-data: | ||
|
||
networks: | ||
mongodb-network: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Ductus.FluentDocker.Executors; | ||
using Ductus.FluentDocker.Executors.Parsers; | ||
using Ductus.FluentDocker.Extensions; | ||
using Ductus.FluentDocker.Model.Common; | ||
using Ductus.FluentDocker.Model.Containers; | ||
using Ductus.FluentDocker.Model.Stacks; | ||
|
||
namespace Ductus.FluentDocker.Commands | ||
{ | ||
/// <summary> | ||
/// Docker service commands | ||
/// </summary> | ||
/// <remarks> | ||
/// API 1.24+ | ||
/// docker service create [OPTIONS] IMAGE [COMMAND] [ARG...] | ||
/// </remarks> | ||
public static class Service | ||
{ | ||
// TODO: Implement me! | ||
public static CommandResponse<IList<string>> ServiceCreate(this DockerUri host, | ||
Orchestrator orchestrator = Orchestrator.All, | ||
string kubeConfigFile = null, | ||
ICertificatePaths certificates = null, params string []stacks) | ||
{ | ||
var args = $"{host.RenderBaseArgs(certificates)}"; | ||
var opts = $"--orchestrator={orchestrator}"; // TODO: | ||
|
||
return // TODO: | ||
new ProcessExecutor<StringListResponseParser, IList<string>>( | ||
"docker".ResolveBinary(), | ||
$"{args} stack rm {opts} {string.Join(" ", stacks)}").Execute(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.