Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Fix extension branch #57

Merged
merged 6 commits into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@
- [dockerfiles](./dockerfiles) contains Dockerfiles
- [extensions](./extensions) contains Theia Extensions
- [plugins](./plugins) contains Theia Plugins

## How to build own che-theia image

First you need to build `che-theia-dev` image:

Run in `dockerfiles/theia-dev` dir:
```bash
./build.sh
```

Then in `dockerfiles/theia` run:

```bash
./build.sh --build-args:THEIA_VERSION=master --branch:master --git-ref:refs\\/heads\\/master
```

That script will clone Theia from master branch and all Che related extensions from theirs master branches.
8 changes: 5 additions & 3 deletions build_and_push_docker_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ dockerfiles/theia
IMAGES_LIST=(
eclipse/che-theia-dev
eclipse/che-theia
eclipse/che-theia-master
)


# BUILD IMAGES
for image_dir in "${DOCKER_FILES_LOCATIONS[@]}"
do
if [ "$image_dir" == "dockerfiles/theia" ]; then
THEIA_IMAGE_TAG="$(awk '/ARG THEIA_VERSION=/{print $NF}' dockerfiles/theia/Dockerfile | cut -d '=' -f2)-nightly"
bash $(pwd)/$image_dir/build.sh --build-args:GITHUB_TOKEN=${GITHUB_TOKEN},THEIA_VERSION=master --branch:master --git-ref:refs\\/heads\\/master
THEIA_IMAGE_TAG="master"
bash $(pwd)/$image_dir/build.sh --build-args:GITHUB_TOKEN=${GITHUB_TOKEN},THEIA_VERSION=master --branch:master --git-ref:refs\\/heads\\/master
elif [ "$image_dir" == "dockerfiles/theia-dev" ]; then
bash $(pwd)/$image_dir/build.sh --build-arg:GITHUB_TOKEN=${GITHUB_TOKEN}
else
Expand All @@ -53,6 +52,9 @@ if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
if [ "$image" == "eclipse/che-theia" ]; then
docker tag ${image}:nightly ${image}:${THEIA_IMAGE_TAG}
echo y | docker push ${image}:${THEIA_IMAGE_TAG}
elif ["$image" == "eclipse/che-theia-dev"]; then
docker tag ${image}:nightly ${image}:${THEIA_IMAGE_TAG}
echo y | docker push ${image}:${THEIA_IMAGE_TAG}
else
echo y | docker push ${image}:nightly
fi
Expand Down
2 changes: 1 addition & 1 deletion extensions/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ extensions:
- extensions/eclipse-che-theia-plugin-ext
- extensions/eclipse-che-theia-terminal
- extensions/eclipse-che-theia-remote
checkoutTo: 0.0.4
checkoutTo: 0.3.19