fix: store wrapper version in portainer

This commit is contained in:
Dmitry Salakhov
2021-01-20 09:26:55 +13:00
parent a549a14340
commit 5f244e6cf3
+1 -5
View File
@@ -13,10 +13,6 @@ import (
"github.com/portainer/portainer/api/http/proxy"
)
const (
composeSyntaxMaxVersion = "3.8"
)
// ComposeWrapper is a wrapper for docker-compose binary
type ComposeWrapper struct {
binaryPath string
@@ -37,7 +33,7 @@ func NewComposeWrapper(binaryPath string, proxyManager *proxy.Manager) *ComposeW
// ComposeSyntaxMaxVersion returns the maximum supported version of the docker compose syntax
func (w *ComposeWrapper) ComposeSyntaxMaxVersion() string {
return composeSyntaxMaxVersion
return portainer.ComposeSyntaxMaxVersion
}
// Up builds, (re)creates and starts containers in the background. Wraps `docker-compose up -d` command