new ledo, with ecr login

This commit is contained in:
Aleksander Cynarski 2021-11-30 18:25:08 +01:00
parent 46be715e9e
commit aee0deba4a
Signed by: paramah
GPG Key ID: C4340BA42B9C173A
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import (
"strings"
)
const DockerComposeVersion = ">= 1.28.6"
const DockerComposeVersion = ">= 1.28.0"
func CheckDockerComposeVersion() {
// cmd := exec.Command("docker-compose", "--version")
@ -36,7 +36,7 @@ func CheckDockerComposeVersion() {
composeSemVer, _ := semver.NewVersion(composeVersion)
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.")
}
}

View File

@ -86,6 +86,6 @@ func (lx *LedoContext) ExecCmdSilent(cmd string, cmdArgs []string) error {
command := exec.Command(cmd, cmdArgs...)
command.Stdin = os.Stdin
command.Stdout = os.Stdout
command.Stderr = os.Stderr
command.Stderr = nil
return command.Run()
}