A factory is a template containing configuration to automate the generation of a new workspace using a factory identifier added to the IDE URL. Factories can be used to create replicas of existing workspaces or to automate the provisioning of statically or dynamically defined workspaces.
Trying a factory
Clone a public workspace on che.openshift.io by clicking try a factory.
Using factories
Factories can be invoked from a factory URL built in multiple ways. You can replace the localhost:8080 domain with the hostname of any Che installation.
Using factories on che.openshift.io requires the user to be authenticated. Users who are not authenticated see a login screen after they click on the factory URL. Users without an account can create one using the same dialog.
Invoking factories using their unique hashcodes
Format |
|
Sample |
Invoking a named factory
Format |
|
Sample |
https://localhost:8080/f?user=che&name=starwars |
Invoking a factory for a specific git repository
Once a factory is executed, it either loads an existing workspace or generates a new one, depending on the factory configuration. The name of the workspace is determined by the factory configuration, and its name becomes a part of the URL used to access the factory. The format is: {hostname}/{username}/{workspace}.
Next steps
You have just created your first developer workspace using factories. Read on to learn more about:
-
How to create factories
-
Customizing factories with the factory JSON reference