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

Commit

Permalink
fix(theia-endpoint): Remove all sidecar images as they don't need to …
Browse files Browse the repository at this point in the history
…be part of Che-Theia lifecycle

It's because the endpoint is injected at runtime.

Part of eclipse-che/che#15109
needs to be merged after eclipse-che/che-plugin-registry#306

Change-Id: I4379e53001a01b7ba9d17bcb174297c58fe825ab
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Dec 3, 2019
1 parent 824372a commit a0776aa
Show file tree
Hide file tree
Showing 83 changed files with 2 additions and 2,247 deletions.
66 changes: 2 additions & 64 deletions build.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ THEIA_DOCKER_IMAGE_VERSION=

parse() {
PUBLISH_IMAGES=false
PULL_REQUEST_MODE=false
FILTERED_ARGS=""
while [ $# -gt 0 ]; do
case $1 in
--pr)
PULL_REQUEST_MODE=true
# For compatibility issue
shift ;;
--push)
PUBLISH_IMAGES=true
Expand All @@ -35,14 +34,6 @@ parse() {
done
}

is_pull_request_mode() {
if [[ "${PULL_REQUEST_MODE}" == "true" ]]; then
return 0
else
return 1
fi
}

is_publish_images() {
if [[ "${PUBLISH_IMAGES}" == "true" ]]; then
return 0
Expand All @@ -51,74 +42,21 @@ is_publish_images() {
fi
}

# KEEP RIGHT ORDER!!!
PR_IMAGES=(
dockerfiles/theia-dev
dockerfiles/theia
dockerfiles/theia-endpoint-runtime-binary
)

# KEEP RIGHT ORDER!!!
DOCKER_FILES_LOCATIONS=(
dockerfiles/theia-dev
dockerfiles/theia
dockerfiles/theia-endpoint-runtime-binary
dockerfiles/remote-plugin-node
dockerfiles/remote-plugin-java8
dockerfiles/remote-plugin-java11
dockerfiles/remote-plugin-php7
dockerfiles/remote-plugin-go-1.10.7
dockerfiles/remote-plugin-go-1.12.9
dockerfiles/remote-plugin-clang-8
dockerfiles/remote-plugin-python-3.7.3
dockerfiles/remote-plugin-python-3.7.4
dockerfiles/remote-plugin-dotnet-2.2.105
dockerfiles/remote-plugin-kubernetes-tooling-0.1.17
dockerfiles/remote-plugin-kubernetes-tooling-1.0.0
dockerfiles/remote-plugin-kubernetes-tooling-1.0.4
dockerfiles/remote-plugin-openshift-connector-0.0.17
dockerfiles/remote-plugin-openshift-connector-0.0.21
dockerfiles/remote-plugin-openshift-connector-0.1.0
dockerfiles/remote-plugin-openshift-connector-0.1.1
dockerfiles/remote-plugin-camelk-0.0.9
dockerfiles/remote-plugin-camelk-0.0.10
dockerfiles/remote-plugin-dependency-analytics-0.0.12
dockerfiles/remote-plugin-dependency-analytics-0.0.13
)

PUBLISH_IMAGES_LIST=(
eclipse/che-theia-dev
eclipse/che-theia
eclipse/che-theia-endpoint-runtime-binary
eclipse/che-remote-plugin-node
eclipse/che-remote-plugin-runner-java8
eclipse/che-remote-plugin-runner-java11
eclipse/che-remote-plugin-php7
eclipse/che-remote-plugin-go-1.10.7
eclipse/che-remote-plugin-go-1.12.9
eclipse/che-remote-plugin-clang-8
eclipse/che-remote-plugin-python-3.7.3
eclipse/che-remote-plugin-python-3.7.4
eclipse/che-remote-plugin-dotnet-2.2.105
eclipse/che-remote-plugin-kubernetes-tooling-0.1.17
eclipse/che-remote-plugin-kubernetes-tooling-1.0.0
eclipse/che-remote-plugin-kubernetes-tooling-1.0.4
eclipse/che-remote-plugin-openshift-connector-0.0.17
eclipse/che-remote-plugin-openshift-connector-0.0.21
eclipse/che-remote-plugin-openshift-connector-0.1.0
eclipse/che-remote-plugin-openshift-connector-0.1.1
eclipse/che-remote-plugin-camelk-0.0.9
eclipse/che-remote-plugin-camelk-0.0.10
eclipse/che-remote-plugin-dependency-analytics-0.0.12
eclipse/che-remote-plugin-dependency-analytics-0.0.13
)

getImages() {
if is_pull_request_mode; then
echo "${PR_IMAGES[@]}"
else
echo "${DOCKER_FILES_LOCATIONS[@]}"
fi
echo "${DOCKER_FILES_LOCATIONS[@]}"
}

buildImages() {
Expand Down
15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-camelk-0.0.10/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-camelk-0.0.10/build.sh

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-camelk-0.0.9/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-camelk-0.0.9/build.sh

This file was deleted.

38 changes: 0 additions & 38 deletions dockerfiles/remote-plugin-clang-8/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-clang-8/build.sh

This file was deleted.

28 changes: 0 additions & 28 deletions dockerfiles/remote-plugin-clang-8/etc/entrypoint.sh

This file was deleted.

37 changes: 0 additions & 37 deletions dockerfiles/remote-plugin-dependency-analytics-0.0.12/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-dependency-analytics-0.0.12/build.sh

This file was deleted.

This file was deleted.

39 changes: 0 additions & 39 deletions dockerfiles/remote-plugin-dependency-analytics-0.0.13/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions dockerfiles/remote-plugin-dependency-analytics-0.0.13/build.sh

This file was deleted.

Loading

0 comments on commit a0776aa

Please sign in to comment.