Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust Workspace.Next model classes to latest updates in the Workspac…
…e.Next vision (#10246) Rework model, of CheService and renamed it to ChePlugin. Replace features hosting to apache server to be able to host plugin files and avoiding having model files for Go lang. Host YAMLs instead of JSONs. Downloads and parse ChePlugin YAMLs instead of JSONs from the marketplace. Improve unit tests coverage. Add support of Che Server protocol and path, so it is possible to run Classic GWT IDE in Workspace Next now. Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
- Loading branch information
Oleksandr Garagatyi
committed
Jul 4, 2018
1 parent
c989282
commit 9fe9021
Showing
29 changed files
with
1,233 additions
and
1,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM alpine/git:latest as clonning | ||
# If value is git marketplace files will be cloned from git repo in $STORAGE_REPO | ||
# Otherwise files will be copied from $STORAGE_PATH. | ||
# Make sure $STORAGE_PATH is in the build context | ||
ARG STORAGE_TYPE=git | ||
ARG STORAGE_REPO=https://github.com/garagatyi/marketplace-storage | ||
ARG STORAGE_PATH=. | ||
COPY $STORAGE_PATH /tmp/local-marketplace-storage | ||
RUN mkdir /tmp/marketplace-storage && \ | ||
if [ "$STORAGE_TYPE" == "git" ]; then \ | ||
git clone $STORAGE_REPO /tmp/marketplace-storage; \ | ||
else \ | ||
cp -r /tmp/local-marketplace-storage/* /tmp/marketplace-storage/; \ | ||
fi | ||
|
||
FROM centos/httpd-24-centos7 | ||
COPY --from=clonning /tmp/marketplace-storage/ /var/www/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Build marketplace docker image | ||
|
||
Execute | ||
```shell | ||
docker build --no-cache -t garagatyi/che-marketplace:1 . | ||
``` | ||
Where `--no-cache` is needed to prevent usage of cached layers with marketplace files. | ||
Useful when you change marketplace files and rebuild the image. | ||
|
||
`-t garagatyi/che-marketplace:1` is needed to set identifier of the image. Do not forget to change `feature-api/yaml` file accordingly if you change this identifier to something else. | ||
|
||
## Use custome repository as a source of marketplace files | ||
|
||
To use a custom git repo as a source of marketplace files use next command to build the image: | ||
```shell | ||
docker build --no-cache -t garagatyi/che-marketplace:1 --build-arg STORAGE_REPO=https://github.com/someuser/somerepo . | ||
``` | ||
|
||
## Use local path as a source of marketplace files | ||
|
||
To use local path as a source of marketplace files use next command to build the image: | ||
```shell | ||
docker build --no-cache -t garagatyi/che-marketplace:1 --build-arg STORAGE_TYPE=path --build-arg STORAGE_PATH=some_path_in_build_context path_to_build_context | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.