* Skip failed project resolving in case if the last one is empty
* Remove redundant project update Update is not needed here, because incoming project already contains project type information
* Check is composer.json file exist before parse it
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
* Composer project importer
Composer is a popular PHP dependency manager (similar to Bower for
Javascript). A natural way to create a new project in PHP is by
materializing it from a Composer package like this:
composer create-project laravel/laravel /projects/laravel
The above command fetches the 'laravel/laravel' Composer package from a
central repository (https://packagist.org/) and installs it at the
/project/laravel folder. The advantage against cloning a git repository
is that `composer create-project` will install all required
dependencies.
This patch contributes a new Composer plugin that:
- Defines a Composer project importer that can import the project source
from a Composer package.
- Defines an Import Project Registrar that registers the Composer
importer into the import project wizard.
The Composer project importer uses the 'location' property of the
SourceStorage model for the package name. As result the "source" of
project templates can be defined like this:
"source": {
"type": "composer",
"location": "zendframework/zend-expressive-skeleton",
"parameters": {}
}
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
Add ability to take base endpoint to thews master from AppContext
Mark RestContextProvider ad deprecated
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
Move agents volume addition into infrastructure provisioner.
Suppress some false positive warnings.
Add some javadocs.
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
* CHE-3152 Improve buttons on the part toolbar
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
* CHE-3152 Improve buttons on the part toolbar
* CHE-2894 Processes panel should be opened maximized
* CHE-3152 Improve buttons on the part toolbar
* CHE-3152 Improve buttons on the part toolbar
* CHE-3152 Improve buttons on the part toolbar
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
* CHE-3152 Improve buttons on the part toolbar
* CHE-3152 Improve buttons on the part toolbar
* CHE-3152 Improve buttons on the part toolbar
The current license checking maven plugin does not allow
for multiple copyright owners on source files. This commit
adds files modified for ServerEvaluationStrategy to an excludes
list so that builds can continue normally.
This commit should be undone once issue #3281 is resolved.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Replaces DockerInstanceRuntimeInfo#getServers() to use
ServerEvaluationStrategy. Deletes LocalDockerInstanceRuntimeInfo
class as it is no longer needed. Adds MapBinder of
ServerEvaluationStrategy to LocalDockerModule.
Updates DockerInstanceRuntimeInfo tests to be more
readable and removes now unnecessary tests.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Adds abstract class ServerEvaluationStrategy which can be used to
change how Che Server communicates with workspace containers.
ServerEvaluationStrategy is meant to be extended to modify the behavior
of DockerInstanceRuntimeInfo#getServers().
Two implementations of ServerEvaluationStrategy are included:
DefaultServerEvaluationStrategy (which is identical to normal
getServers() functionality) and LocalDockerServerEvaluationStrategy,
which uses internal container addresses for workspace containers
and can help in cases where firewall is an issue.
Strategies are provided by ServerEvaluationStrategyProvider, which
uses the new property che.docker.server_evaluation_strategy to choose
which implementation is provided.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>