Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define another environment and switch between environments? #634

Closed
freewind opened this issue Mar 4, 2016 · 2 comments
Closed
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@freewind
Copy link

freewind commented Mar 4, 2016

I see in the che documents, there is a concept "environment" and a workspace may have multiple environments.

But in a workspace, I can find a way to define other environments and switch between them. Is there feature already provided? Or do I miss anything?

@ddementieva ddementieva added the kind/question Questions that haven't been identified as being feature requests or bugs. label Mar 4, 2016
@ghost
Copy link

ghost commented Mar 4, 2016

Right now, there's no such an option when it comes to starting workspaces from Dashboard or IDE. API, however, allows it.

You may want to see what's happening when you create a workspace. First a workspace is created. By default, it's created with one environment which is based on a chosen recipe. However, API allows having multiple environments associated with a workspace. So, you may create a ws with env1 and then update it with env2.

When a workspace is started, environment is defined in a query parameter:

/api/workspace/$ws-id}/runtime?environment=${ENV_NAME}

At the moment, we do not have any UI that will be linked to the right API calls, letting a users create multiple envs associated with a workspace and choose env when starting a workspace.

@freewind
Copy link
Author

freewind commented Mar 4, 2016

@eivantsov Thanks, I'm clear now :)

@ghost ghost closed this as completed Mar 4, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants