/
version.go
71 lines (51 loc) · 2.7 KB
/
version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package version
// VERSION is supplied with the git committish this is built from
var VERSION = ""
// IMPORTANT: These versions are overridden by version ldflags specifications VERSION_VARIABLES in the Makefile
// DdevVersion is the current version of ddev, by default the git committish (should be current git tag)
var DdevVersion = "v0.0.0-overridden-by-make" // Note that this is overridden by make
// DockerVersionConstraint is the current minimum version of docker required for ddev.
// See https://godoc.org/github.com/Masterminds/semver#hdr-Checking_Version_Constraints
// for examples defining version constraints.
// REMEMBER TO CHANGE docs/index.md if you touch this!
var DockerVersionConstraint = ">= 18.06.0-ce"
// DockerComposeVersionConstraint is the current minimum version of docker-compose required for ddev.
// REMEMBER TO CHANGE docs/index.md if you touch this!
var DockerComposeVersionConstraint = ">= 1.20.0"
// DockerComposeFileFormatVersion is the compose version to be used
var DockerComposeFileFormatVersion = "3.6"
// WebImg defines the default web image used for applications.
var WebImg = "drud/ddev-webserver"
// WebTag defines the default web image tag for drud dev
var WebTag = "20180920_fix_drush_auto_yes" // Note that this can be overridden by make
// DBImg defines the default db image used for applications.
var DBImg = "drud/ddev-dbserver"
// DBTag defines the default db image tag for drud dev
var DBTag = "v1.2.0" // Note that this may be overridden by make
// DBAImg defines the default phpmyadmin image tag used for applications.
var DBAImg = "drud/phpmyadmin"
// DBATag defines the default phpmyadmin image tag used for applications.
var DBATag = "v1.2.0" // Note that this can be overridden by make
// RouterImage defines the image used for the router.
var RouterImage = "drud/ddev-router"
// RouterTag defines the tag used for the router.
var RouterTag = "v1.2.0" // Note that this can be overridden by make
// COMMIT is the actual committish, supplied by make
var COMMIT = "COMMIT should be overridden"
// BUILDINFO is information with date and context, supplied by make
var BUILDINFO = "BUILDINFO should have new info"
// DDevTLD defines the tld to use for DDev site URLs.
const DDevTLD = "ddev.local"
// GetVersionInfo returns a map containing the version info defined above.
func GetVersionInfo() map[string]string {
versionInfo := make(map[string]string)
versionInfo["cli"] = DdevVersion
versionInfo["web"] = WebImg + ":" + WebTag
versionInfo["db"] = DBImg + ":" + DBTag
versionInfo["dba"] = DBAImg + ":" + DBATag
versionInfo["router"] = RouterImage + ":" + RouterTag
versionInfo["commit"] = COMMIT
versionInfo["domain"] = DDevTLD
versionInfo["build info"] = BUILDINFO
return versionInfo
}