Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Set the JEC_CONF_GIT_URLJEC_CONF_GIT_FILEPATHJEC_CONF_GIT_PRIVATE_KEY_FILEPATH, and JEC_CONF_GIT_PASSPHRASE variables. If you are using a public repository, you should use an https format of a git url URL and you do not need don’t need to set a private key and passphrase. You can optionally set JEC_API_KEY; if this property is set in the environment, its value is used as apiKey or else apiKey from the configuration file is used.

Expand
titleConfiguration variables

Key

Value Properties

Example

JEC_CONF_SOURCE_TYPE

git, for reading from git

local, for reading from a local environment

JEC_CONF_SOURCE_TYPE=git

JEC_CONF_SOURCE_TYPE=local

JEC_CONF_LOCAL_FILEPATH

filepath with extension (.yaml, .yml or .json)
Default: ~/jec/config.json

JEC_CONF_LOCAL_FILEPATH=/home/JSM/JECConfig.yaml

JEC_CONF_LOCAL_FILEPATH=~/JECConfig.json

JEC_CONF_GIT_URL

HTTPS or SSH url of the git repository

JEC_CONF_GIT_URL=git@bitbucket.com:

...

username/test-private-conf-cem.git
or
JEC_CONF_GIT_URL=https://bitbucket.org/

...

username/test-conf-cem.git

JEC_CONF_GIT_FILEPATH

Filepath in the git repository folder (.yaml, .yml or .json)

JEC_CONF_GIT_FILEPATH=~/jec/config.json

JEC_CONF_GIT_PRIVATE_KEY_FILEPATH

Location of git ssh key in the local drive

JEC_CONF_GIT_PRIVATE_KEY_FILEPATH=~/.ssh/id_rsa

JEC_CONF_GIT_PASSPHRASE

ssh passphrase

JEC_CONF_GIT_PASSPHRASE=1234

JEC_LOG_FORMAT_TYPE

text → logrus text type logs
json → logrus json type logs
colored → colored logrus type logs (default)

JEC_LOG_FORMAT_TYPE=text

JEC_API_KEY

API key from the JEC integration page, if this property is set, it overrides apiKey provided in the configuration file.

JEC_API_KEY=4XXXXXX7-XXXX-XXXX-XXXX-9XXXXXXXXXX4

Info

Use the ‘~’ character as home directory for running the program as a user in a customer’s server.

...