Giter Club home page Giter Club logo

profile-env's Introduction

profile-env

A Leiningen plugin that outputs profile information so it can be used by bash or docker. Designed to be used with environ.

Install

Add to your ~/.lein/profiles.clj or include it in your project plugins.

[org.jonharrington/profile-env "0.1.0"]

Usage

To output dev/testing profile

$ lein profile-env
AWS_ACCESS_KEY=
AWS_ACCESS_KEY_ID=
AWS_REGION=http://localhost:8000
DB_URL=postgres://localhost

To source into bash

$ lein profile-env > local.env
$ set -a
$ . local.env
$ echo $DB_URL
postgres://localhost

To use with docker

$ lein profile-env > local.env
$ docker run --env-file local.env ...

To get info from another profile, just use with-profile as normal

$ lein with-profile staging profile-env
AWS_ACCESS_KEY=SECRET
AWS_ACCESS_KEY_ID=SECRET
AWS_REGION=http://eu-east1....
DB_URL=postgres://....    

License

Copyright © 2015 Jonathan Harrington

Distributed under the BSD-2 license.

profile-env's People

Contributors

prio avatar

Watchers

 avatar  avatar

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.