Git Product home page Git Product logo

env-assert's Introduction

envassert

Ensure that the environment variables match what is requested, or abort.

DESCRIPTION

envassert checks that your runtime environment, as defined with environment variables, matches with what you want.

You can define your required environment in a file. Default file is .envdesc but you can use any file. It is advantageous to use envassert for example when running a container. If you check your environment for missing or wrongly defined environment variables at the beginning of the container run, your container will fail sooner instead of in a later point in execution when the variables are needed.

SYNOPSIS

envassert [options]

Options:

--help
--man
--version
--break-at-error
--env-description

INSTALLATION

Packaging

Packaging status

CLI interface without dependencies

The envassert command is also available as self contained executable. You can download it and run it as it is without additional installation of CPAN packages. Of course, you still need Perl, but Perl comes with any normal Linux installation.

This can be convenient if you want to, for instance, include envassert in a docker container build.

curl -LSs -o envassert https://raw.githubusercontent.com/mikkoi/env-assert/main/envassert.self-contained
chmod +x ./envassert

How to Create a FatPacker Executable

PERL5LIB=lib fatpack pack script/envassert >envassert.self-contained

env-assert's People

Contributors

bessarabov avatar mikkoi avatar ronsavage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

env-assert's Issues

Suspicious single quote symbol in t/one/.envdesc

Currently in the source code there is a file t/one/.envdesc

It looks like it is not used in tests, and there is one suspicious line in in:

USER=^[[:word:]]{1,}$'

I don't get it why there is a ' in the end of that line. (Probably this is an error from copy-paste?)

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.