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

(maint) Support dotted env vars in containers #3401

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

Iristyle
Copy link
Contributor

 - Both docker (per moby/moby#16585) and
   Kubernetes (per kubernetes/kubernetes#2707)
   support passing environment variables with dots as config, despite
   dot not technically being supported in POSIX.

   This is necessary to be able to specify hocon array values like
   FOO.0, FOO.1, etc now that the Hocon library is updated to
   typesafe/config 1.4.1 via puppetlabs/typesafe-config 0.2.0 /
   clj-parent 4.6.11

   /bin/sh will not add such variables to the environment, but /bin/bash
   will properly expose them, so that they may be consumed by
   puppetserver and hocon.

   NOTE: ElasticSearch is notorious for passing such values, and it also
   uses the tini init system, so it served as a good design to follow:

   https://github.com/elastic/elasticsearch/tree/master/distribution/docker
@Iristyle Iristyle requested a review from a team as a code owner January 27, 2021 05:04
@MikaelSmith MikaelSmith merged commit deb5ff5 into master Jan 27, 2021
@MikaelSmith MikaelSmith deleted the allow-env-vars-with-dots branch January 27, 2021 16:47
binford2k referenced this pull request in voxpupuli/container-puppetdb Nov 1, 2022
(maint) Support dotted env vars in containers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants