-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add podman support
- Loading branch information
Showing
45 changed files
with
384 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pull_request_rules: | ||
- name: Automatic merge on approval | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
actions: | ||
merge: | ||
method: squash | ||
- name: comment with default | ||
conditions: | ||
- label=comment | ||
actions: | ||
comment: | ||
message: I 💙 Mergify | ||
bot_account: Autobot |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
runtime: docker | ||
docker: | ||
registry: registry.cynarski.pl | ||
namespace: LeDo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/cmd/container" | ||
"github.com/paramah/ledo/app/modules/compose" | ||
"github.com/paramah/ledo/app/modules/config" | ||
"github.com/paramah/ledo/app/modules/context" | ||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
var CmdContainer = cli.Command{ | ||
Name: "container", | ||
Aliases: []string{"c", "docker", "d"}, | ||
Category: catHelpers, | ||
Usage: "container helper", | ||
Description: `Manage compose tools (docker or podman) in project`, | ||
Subcommands: []*cli.Command{ | ||
&container.CmdDockerPs, | ||
&container.CmdDockerUp, | ||
&container.CmdComposeBuild, | ||
&container.CmdComposeDebug, | ||
&container.CmdComposeDown, | ||
&container.CmdComposeLogs, | ||
&container.CmdComposeRestart, | ||
&container.CmdComposeRun, | ||
&container.CmdComposeExec, | ||
&container.CmdDockerRm, | ||
&container.CmdComposeShell, | ||
&container.CmdComposeStart, | ||
&container.CmdComposeUpOnce, | ||
&container.CmdComposePull, | ||
&container.CmdComposeStop, | ||
&container.CmdDockerLogin, | ||
&container.CmdPrune, | ||
}, | ||
Before: func(cmd *cli.Context) error { | ||
ctx := context.InitCommand(cmd) | ||
if ctx.Config.Runtime == config.Docker { | ||
compose.CheckDockerComposeVersion() | ||
} | ||
|
||
if ctx.Config.Runtime == config.Podman { | ||
compose.CheckPodmanComposeVersion() | ||
} | ||
|
||
return nil | ||
}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
"github.com/paramah/ledo/app/modules/context" | ||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
var CmdConfiguration = cli.Command{ | ||
Name: "configuration", | ||
Usage: "how to configure container service", | ||
Description: `Display configuration hints for containers`, | ||
Action: RunConfiguration, | ||
} | ||
|
||
func RunConfiguration(cmd *cli.Context) error { | ||
ctx := context.InitCommand(cmd) | ||
compose.ExecComposerBuild(ctx, *cmd) | ||
return nil | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package docker | ||
package container | ||
|
||
import ( | ||
"github.com/paramah/ledo/app/modules/compose" | ||
|
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.