15. A computer readable storage device storing a program of instructions executable by a machine to perform a method of generating configuration images and deploying computer components in a computing environment that comprises a shared pool of configurable computing resources, the method comprising: automatically mining by one or more hardware processors repositories for configuration templates, the configuration templates comprising executable commands that configure computer hardware and software resources on the computing environment; classifying by one or more of the hardware processors the configuration templates into classes of different service configurations; creating base templates representing the different service configurations based on the configuration templates classified into classes of different service configurations; receiving a deployment request with specified requirements for deploying computer resources for a requested service on the shared pool of configurable computing resources; searching the configuration templates for configurations that meet the specified requirements for the requested service; creating a plurality of candidate templates based on the base templates that represent configurations for the requested service and the configurations that meet the specified requirements; selecting a target template from the plurality of candidate templates that most meets the specified requirements; and deploying the computer resources for the requested service by executing the target template.
15. A computer readable storage device storing a program of instructions executable by a machine to perform a method of generating configuration images and deploying computer components in a computing environment that comprises a shared pool of configurable computing resources, the method comprising: automatically mining by one or more hardware processors repositories for configuration templates, the configuration templates comprising executable commands that configure computer hardware and software resources on the computing environment; classifying by one or more of the hardware processors the configuration templates into classes of different service configurations; creating base templates representing the different service configurations based on the configuration templates classified into classes of different service configurations; receiving a deployment request with specified requirements for deploying computer resources for a requested service on the shared pool of configurable computing resources; searching the configuration templates for configurations that meet the specified requirements for the requested service; creating a plurality of candidate templates based on the base templates that represent configurations for the requested service and the configurations that meet the specified requirements; selecting a target template from the plurality of candidate templates that most meets the specified requirements; and deploying the computer resources for the requested service by executing the target template. 18. The computer readable storage device of claim 15 , wherein the different service configurations comprises configurations for a web server, database server, application server, virtual machine, a computing infrastructure, a computing platform, a middleware.