Giter Club home page Giter Club logo

Comments (5)

sajmoon avatar sajmoon commented on August 20, 2024

On the github page for geard they have an example:

"$ gear install ccoleman/envtest localhost/env-test1 --env-file=deployment/fixtures/simple.env

Loading environment into a running container is dependent on the "docker run --env-file" option in Docker master from 0.9.x after April 1st. You must start the daemon with "gear daemon --has-env-file" in order to use the option - this option will be made the default after 0.9.1 lands and the minimal requirements will be updated."

One example of an .env file can be found in the repo itself:
https://github.com/openshift/geard/blob/master/deployment/fixtures/simple.env

from geard.

smarterclayton avatar smarterclayton commented on August 20, 2024

You can also set env via

$ gear install openshift/busybox-http-app localhost/myservice A=B B=C C=D

from geard.

capoferro avatar capoferro commented on August 20, 2024

Thanks for the notes. I had tried --env-file but I must have been doing something wrong. Is there a way to define environment variables via the json definition of containers?

from geard.

capoferro avatar capoferro commented on August 20, 2024

[edit] I'm an idiot, I missed the note about starting the gear daemon with --has-env-file

Thanks all!

from geard.

smarterclayton avatar smarterclayton commented on August 20, 2024

bluepojo the default has now been changed to be "true" (but it's not in the Fedora packages yet I don't think) since Docker landed their env file support.

from geard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.