https://github.com/fontebasso/docker-alpine-dumpenv
This project is container includes the https://pypi.org/project/dump-env/ binary for creating dotenv files
https://github.com/fontebasso/docker-alpine-dumpenv
container docker dotenv dump-env env python
Last synced: about 2 months ago
JSON representation
This project is container includes the https://pypi.org/project/dump-env/ binary for creating dotenv files
- Host: GitHub
- URL: https://github.com/fontebasso/docker-alpine-dumpenv
- Owner: fontebasso
- License: mit
- Created: 2020-04-19T18:26:16.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T14:00:03.000Z (about 5 years ago)
- Last Synced: 2025-06-22T07:44:17.684Z (12 months ago)
- Topics: container, docker, dotenv, dump-env, env, python
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# fontebasso/dumpenv
This container includes the [dump-env](https://pypi.org/project/dump-env/) binary for creating dotenv files
## Getting Started
This quick demo will demonstrate the main and the only purpose of dump-env:
```shell
$ 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.
* [Windows](https://docs.docker.com/windows/started)
* [OS X](https://docs.docker.com/mac/started/)
* [Linux](https://docs.docker.com/linux/started/)
#### Volumes
* `/app` - directory that the container starts the dump-env
## Built With
* alpine 3.14
* dump-env 1.3.0
## Find Us
* [GitHub](https://github.com/fontebasso/docker-alpine-dumpenv)
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the
[tags on this repository](https://github.com/fontebasso/docker-alpine-dumpenv/tags).
## Authors
* **Samuel Fontebasso** - *Initial work* - [fontebasso](https://github.com/fontebasso)
See also the list of [contributors](https://github.com/fontebasso/docker-alpine-dumpenv/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgments
* [Thomas Güttler](https://github.com/guettli) for having started building the awesome dump-env package