Create environment-specific Profiles
If you would like to use a different versions of Cloudbreak for prod and qa profile, you must create two environment specific configurations that can be sourced.
For example:
- Profile.prod
- Profile.qa
For example, to create and use a prod profile, you need to:
- Create a file called
Profile.prod
- Write the environment-specific
export DOCKER_TAG_CLOUDBREAK=0.3.99
intoProfile.prod
to specify Docker image. - Set the environment variable:
CBD_DEFAULT_PROFILE=prod
To use the prod specific profile once, set:
CBD_DEFAULT_PROFILE=prod cbd some_commands
To permanently use the prod profile, set export CBD_DEFAULT_PROFILE=prod
in
your .bash_profile
.