Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

job env changes dots to underscores #3880

Closed
TheCase opened this issue Feb 17, 2018 · 3 comments
Closed

job env changes dots to underscores #3880

TheCase opened this issue Feb 17, 2018 · 3 comments

Comments

@TheCase
Copy link

TheCase commented Feb 17, 2018

Nomad version

Nomad v0.7.1 (0b295d3)

Nomad.hcl

job "envtest" {
  datacenters = [ "tec1" ]
  type = "service"

  group "test" {
    count = 1
    task "test" {
      driver = "docker"
      config {
        image = "nginx"
      }
      env {
        foo.bar = "foobar"
      }
      resources {
        cpu    = 100 # MHz
        memory = 100 # MB
        network { mbits = 100 }
      }
    }
  }
}

Issue

dot character in environment variable name is replaced with an underscore

Reproduction steps

inside docker container, note that dot has been replace with underscore:

# export
export foo_bar='foobar'

Use case; Elasticsearch container images can use environment variables with dots in the (ie. discovery.zen.ping.unicast.hosts)

Not a blocker, as I can use a template for configuration, but I would like to be able to use env values instead.

@shantanugadgil
Copy link
Contributor

Possibly fixed as part of:
#3760

Also mentioned in the CHANGELOG.md

HTH,
Shantanu

@chelseakomlo
Copy link
Contributor

Thanks for reporting this issue- as mentioned, see #3760. This fix will be included in our next release.

@github-actions
Copy link

github-actions bot commented Dec 3, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants