Skip to content

jabubake/rcloadenv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rcloadenv

rcloadenv is a tool for loading configuration from the Runtime Config API.

Installation

The language-specific implementations all load configurations from the Runtime Config API. Choose the one that best fits your development environment.

Go package

go get -u github.com/GoogleCloudPlatform/rcloadenv

Python package

pip install rcloadenv

Java (Spring)

See instructions here

Usage

First, create a configuration using the Google Cloud SDK.

gcloud beta runtime-config configs create my-config

Then set the variables you wish to load. Variable names will be transformed from lowercase to uppercase, separated by underscores.

gcloud beta runtime-config configs variables set \
    my-variable-name my-value \
    --is-text --config-name my-config

To specify the project, set the GOOGLE_CLOUD_PROJECT environment variable.

export GOOGLE_CLOUD_PROJECT=my-project-id

Use the rcloadenv command to launch your process.

rcloadenv my-config -- bash -c 'echo $MY_VARIABLE_NAME'

Contributing changes

Licensing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 38.8%
  • Python 27.1%
  • Go 20.6%
  • Shell 13.5%