mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
commit
3d9adede13
4 changed files with 6 additions and 6 deletions
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Link struct holds informations about parent/child linked container
|
// Link struct holds information about parent/child linked container
|
||||||
type Link struct {
|
type Link struct {
|
||||||
// Parent container IP address
|
// Parent container IP address
|
||||||
ParentIP string
|
ParentIP string
|
||||||
|
@ -43,7 +43,7 @@ func NewLink(parentIP, childIP, name string, env []string, exposedPorts map[nat.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToEnv creates a string's slice containing child container informations in
|
// ToEnv creates a string's slice containing child container information in
|
||||||
// the form of environment variables which will be later exported on container
|
// the form of environment variables which will be later exported on container
|
||||||
// startup.
|
// startup.
|
||||||
func (l *Link) ToEnv() []string {
|
func (l *Link) ToEnv() []string {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
package dockerversion // import "github.com/docker/docker/dockerversion"
|
package dockerversion // import "github.com/docker/docker/dockerversion"
|
||||||
|
|
||||||
// Default build-time variable for library-import.
|
// Default build-time variable for library-import.
|
||||||
// This file is overridden on build with build-time informations.
|
// This file is overridden on build with build-time information.
|
||||||
const (
|
const (
|
||||||
GitCommit = "library-import"
|
GitCommit = "library-import"
|
||||||
Version = "library-import"
|
Version = "library-import"
|
||||||
|
|
|
@ -13,7 +13,7 @@ cat > dockerversion/version_autogen.go <<DVEOF
|
||||||
package dockerversion
|
package dockerversion
|
||||||
|
|
||||||
// Default build-time variable for library-import.
|
// Default build-time variable for library-import.
|
||||||
// This file is overridden on build with build-time informations.
|
// This file is overridden on build with build-time information.
|
||||||
const (
|
const (
|
||||||
GitCommit string = "$GITCOMMIT"
|
GitCommit string = "$GITCOMMIT"
|
||||||
Version string = "$VERSION"
|
Version string = "$VERSION"
|
||||||
|
@ -35,7 +35,7 @@ cat > dockerversion/version_autogen_unix.go <<DVEOF
|
||||||
package dockerversion
|
package dockerversion
|
||||||
|
|
||||||
// Default build-time variable for library-import.
|
// Default build-time variable for library-import.
|
||||||
// This file is overridden on build with build-time informations.
|
// This file is overridden on build with build-time information.
|
||||||
const (
|
const (
|
||||||
RuncCommitID string = "${RUNC_COMMIT}"
|
RuncCommitID string = "${RUNC_COMMIT}"
|
||||||
InitCommitID string = "${TINI_COMMIT}"
|
InitCommitID string = "${TINI_COMMIT}"
|
||||||
|
|
|
@ -41,7 +41,7 @@ try {
|
||||||
package dockerversion
|
package dockerversion
|
||||||
|
|
||||||
// Default build-time variable for library-import.
|
// Default build-time variable for library-import.
|
||||||
// This file is overridden on build with build-time informations.
|
// This file is overridden on build with build-time information.
|
||||||
const (
|
const (
|
||||||
GitCommit string = "'+$CommitString+'"
|
GitCommit string = "'+$CommitString+'"
|
||||||
Version string = "'+$DockerVersion+'"
|
Version string = "'+$DockerVersion+'"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue