Sign inSign up

fontebasso/dumpenv

By fontebasso

Updated about 5 years ago

This container includes the https://pypi.org/project/dump-env/ binary for creating dotenv files

Image
0

1.9K

fontebasso/dumpenv repository overview

fontebasso/dumpenv

This container includes the dump-env binary for creating dotenv files

Getting Started

This quick demo will demonstrate the main and the only purpose of dump-env:

$ docker run -v $PWD:/app fontebasso/dumpenv:1.0.0 --template=.env.template --prefix='SECRET_ENV_' > .env

This command will:

  1. take .env.template
  2. parse its keys and values
  3. read and all the variables from the environment starting with SECRET_ENV_
  4. remove this prefix
  5. mix it all together, environment vars may override ones from the template
  6. sort keys in alphabetic order
  7. dump all the keys and values into the .env file

For more instructions, access https://pypi.org/project/dump-env

Prerequisities

In order to run this container you'll need docker installed.

Volumes
  • /app - directory that the container starts the dump-env

Built With

  • alpine 3.14
  • dump-env 1.3.0

Find Us

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Tag summary

Content type

Image

Digest

Size

86.7 MB

Last updated

about 5 years ago

docker pull fontebasso/dumpenv