Project

rcloadenv

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
rcloadenv is a tool for loading configuration from the Google Runtime Config API into environment variables. The rcloadenv ruby gem is a ruby implementation of the tool that may be installed as a ruby gem or included in a ruby Gemfile.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 2.2
~> 5.0
~> 11.0
~> 4.2
~> 0.9

Runtime

 Project Readme

status: inactive

This project is no longer actively developed or maintained.

For new work on this check out the Secret Manager API.

rcloadenv

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

CircleCI Build Status

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

For more information on using rcloadenv with Python, see python/README.rst.

Node.js package

Using npm:

npm install -g @google-cloud/rcloadenv

Using yarn:

yarn global add @google-cloud/rcloadenv

For more information on using rcloadenv with Node.js, see nodejs/README.md.

Ruby package

Install the gem:

gem install rcloadenv

Or include "rcloadenv" in your application's Gemfile.

For more information on using rcloadenv with Ruby, see ruby/README.md.

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'

Disclaimer

This is not an official Google product, experimental or otherwise.

Contributing changes

Licensing