Giter Club home page Giter Club logo

Comments (9)

wernight avatar wernight commented on July 16, 2024

Yes, but I'm really thinking to drop all environment variables. Marking them as deprecated for now as I see little reason to use them over using the command-line. The only advantage I see it the ability to use Kubernetes secrets directly without setting up a shell script.

Why do you prefer environment variables?

from docker-ngrok.

jnovack avatar jnovack commented on July 16, 2024

If I'm on my desktop, running tests, in development, I HATE environment variables, everything needs to be on the command line so I can see what broke. However, when doing any deployments, environment variables are so much more preferred.

In deployments, every machine runs the same docker image, with the same command line and all variables are changed with the environment. When I run a new image on a box, all I have to do is name the image, and point to the customized environment file. Done. Easy button.

Every server gets the following, no customized command lines, easy deployment.
# docker run --env-file ~/ngrok.env wernight/ngrok

I strongly encourage keeping the environment variables, if for no other reason than to provide someone a choice. You can make the primary entry into the application command line, but please keep the option of environment variables.

Now, this image is hardly deployed, but the fact it is set up for those advanced features (environment variables, exposed ports), makes you ahead of the game and a good example of a custom package.

from docker-ngrok.

wernight avatar wernight commented on July 16, 2024

No worries I'm not planning to remove them soon, just want to avoid people relying on them first and understand to strong needs.

Have you looked into using docker-compose.yml to perform the same thing? I have such a file on almost all my projects for development. You can also use environment variable in it.

from docker-ngrok.

jnovack avatar jnovack commented on July 16, 2024

I do use it, when appropriate, and I'm not against it.

My OCD is against having:

  • NGROK_AUTH
  • NGROK_SUBDOMAIN
  • NGROK_PROTOCOL
  • NGROK_DOMAIN
  • NGROK_USERNAME
  • NGROK_PASSWORD
  • HTTP_PORT

https://youtu.be/ueZ6tvqhk8U?t=19s

from docker-ngrok.

wernight avatar wernight commented on July 16, 2024

Ha ha. Fair point.

from docker-ngrok.

marclennox avatar marclennox commented on July 16, 2024

I too strongly recommend against removing environment variable support. One of the great things about running docker is you can encapsulate all configuration in an environment file, which I have always used when running ngrok in docker.

from docker-ngrok.

wernight avatar wernight commented on July 16, 2024

Ok

from docker-ngrok.

wernight avatar wernight commented on July 16, 2024

Updated README and note that NGROK_PORT is supported.

from docker-ngrok.

jnovack avatar jnovack commented on July 16, 2024

Thank you kindly. I shall name a Pokémon after you.

from docker-ngrok.

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.