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

Commit

Permalink
Fix extension branch (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
  • Loading branch information
evidolob authored Feb 11, 2019
1 parent c7e5afd commit d9e09ab
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
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

0 comments on commit d9e09ab

Please sign in to comment.