Skip to content

Commit

Permalink
Frontend context name ephemeral value (#456)
Browse files Browse the repository at this point in the history
* Override FRONTEND_CONTEXT_NAME param with clowd_env

* Add Readme section for running local version of bonfire
  • Loading branch information
Hyperkid123 authored Feb 3, 2025
1 parent 5366df7 commit 1edf2ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ podman run -it --rm --userns=keep-id:uid=1000,gid=1000 -v $HOME/.kube/config:/op
quay.io/cloudservices/bonfire namespace list
```

# Local development

To install local changes and use local version of bonfire, switch to the root directory of this repository, switch to virtual environment and install bonfire package with local changes:

```bash
VENV_DIR=~/bonfire_venv
mkdir -p $VENV_DIR
python3 -m venv $VENV_DIR
. $VENV_DIR/bin/activate
pip install -e .
```


# Quick Start

Start with `bonfire --help` to familiarize yourself with the basic command groups. Don't forget to use the `--help` flag on sub-commmands as well if you are curious to learn more about different CLI commands, options, and arguments.
Expand Down
2 changes: 2 additions & 0 deletions bonfire/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,8 @@ def _get_component_items(self, component_name):

# always override ENV_NAME
params["ENV_NAME"] = self.clowd_env
# TODO: revisit need for below param once FEO has a more developed config management system
params["FRONTEND_CONTEXT_NAME"] = self.clowd_env

# override other specific parameters on this component if requested by user at runtime
self._sub_params(component_name, params)
Expand Down

0 comments on commit 1edf2ff

Please sign in to comment.