Add PWD_HOST_FQDN env variable to instances.

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-06-14 19:02:07 -03:00
parent fa275b8ef4
commit 8f247794bb
4 changed files with 7 additions and 2 deletions

View File

@@ -206,6 +206,7 @@ type CreateContainerOpts struct {
ServerKey []byte
CACert []byte
Privileged bool
HostFQDN string
}
func (d *docker) CreateContainer(opts CreateContainerOpts) (string, error) {
@@ -256,6 +257,7 @@ func (d *docker) CreateContainer(opts CreateContainerOpts) (string, error) {
h.Resources.OomKillDisable = &t
env = append(env, fmt.Sprintf("PWD_IP_ADDRESS=%s", opts.PwdIpAddress))
env = append(env, fmt.Sprintf("PWD_HOST_FQDN=%s", opts.HostFQDN))
cf := &container.Config{Hostname: opts.Hostname,
Image: opts.Image,
Tty: true,