Skip to main content

Replace env files with etcd configurations.

Project description

Materialize is a simple toolkit for replacing env files with etcd configurations.

Step #1: Manually (or via a docker environment setting from the docker command line DO NOT BAKE IN!)

export etchost={host of etcd server} export etccluster{dev/prod/uat}

Step #2: Edit the .env file so anything that has to go into shared config (between apps on a cluster) has #common after it. Then type the following;-

./materialize dematerialize {cluster} {appname}

With the .env file now scanned into etcd the app is ready to go.

Two options

  1. Reconstruct .env from the command line in the container. The cluster is gleaned from the environment variable.

    ./materialize magic {appname}

  2. Insert the following into manage.py in the django.

    import materializer materializer.magic_rematerializer()

And let the magic take hold.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

materialize-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file materialize-0.1.1.tar.gz.

File metadata

  • Download URL: materialize-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for materialize-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e879494e4143f47202f27f65190a4a46bea0a8ee5ba5bfc03ba3d283d5ae86f3
MD5 fd37cb3bbe94eb778b909d68e566f71c
BLAKE2b-256 57fd5d7816ae4dca29e9b06e8ac3da812a7ef44def3bc0c0b1394d9025006dae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page