new ledo, with ecr login
This commit is contained in:
parent
46be715e9e
commit
af46f1d8d0
@ -15,7 +15,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const DockerComposeVersion = ">= 1.28.6"
|
const DockerComposeVersion = ">= 1.28.0"
|
||||||
|
|
||||||
func CheckDockerComposeVersion() {
|
func CheckDockerComposeVersion() {
|
||||||
// cmd := exec.Command("docker-compose", "--version")
|
// cmd := exec.Command("docker-compose", "--version")
|
||||||
@ -36,7 +36,7 @@ func CheckDockerComposeVersion() {
|
|||||||
composeSemVer, _ := semver.NewVersion(composeVersion)
|
composeSemVer, _ := semver.NewVersion(composeVersion)
|
||||||
|
|
||||||
if !verConstraint.Check(composeSemVer) {
|
if !verConstraint.Check(composeSemVer) {
|
||||||
log.Fatal("Wrong docker-compose version, please update to 1.28.6 or higher.")
|
log.Fatal("Wrong docker-compose version, please update to "+DockerComposeVersion+" or higher.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,6 +86,6 @@ func (lx *LedoContext) ExecCmdSilent(cmd string, cmdArgs []string) error {
|
|||||||
command := exec.Command(cmd, cmdArgs...)
|
command := exec.Command(cmd, cmdArgs...)
|
||||||
command.Stdin = os.Stdin
|
command.Stdin = os.Stdin
|
||||||
command.Stdout = os.Stdout
|
command.Stdout = os.Stdout
|
||||||
command.Stderr = os.Stderr
|
command.Stderr = nil
|
||||||
return command.Run()
|
return command.Run()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user