From 506d72c99428925e0df49d5d2a7fb421a7c8ad07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Wed, 9 Oct 2019 15:10:01 +0200 Subject: [PATCH] Provide Docker image for Camel K plugin eclipse/che#14806 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - reuse Kubernetes image - add kamel executable Signed-off-by: Aurélien Pupier --- dockerfiles/remote-plugin-camelk-0.0.9/Dockerfile | 15 +++++++++++++++ dockerfiles/remote-plugin-camelk-0.0.9/build.sh | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 dockerfiles/remote-plugin-camelk-0.0.9/Dockerfile create mode 100755 dockerfiles/remote-plugin-camelk-0.0.9/build.sh diff --git a/dockerfiles/remote-plugin-camelk-0.0.9/Dockerfile b/dockerfiles/remote-plugin-camelk-0.0.9/Dockerfile new file mode 100644 index 000000000..d10a885f8 --- /dev/null +++ b/dockerfiles/remote-plugin-camelk-0.0.9/Dockerfile @@ -0,0 +1,15 @@ +# Copyright (c) 2019 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation +FROM ${BUILD_ORGANIZATION}/che-remote-plugin-kubernetes-tooling-1.0.0:${BUILD_TAG} + +ENV KAMEL_VERSION 1.0.0-M1 + +RUN curl -L https://github.com/apache/camel-k/releases/download/${KAMEL_VERSION}/camel-k-client-${KAMEL_VERSION}-linux-64bit.tar.gz | tar -C /usr/local/bin -xz \ + && chmod +x /usr/local/bin/kamel diff --git a/dockerfiles/remote-plugin-camelk-0.0.9/build.sh b/dockerfiles/remote-plugin-camelk-0.0.9/build.sh new file mode 100755 index 000000000..8068674f4 --- /dev/null +++ b/dockerfiles/remote-plugin-camelk-0.0.9/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Copyright (c) 2019 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# + +base_dir=$(cd "$(dirname "$0")"; pwd) +. "${base_dir}"/../build.include + +init --name:remote-plugin-camelk-0.0.9 "$@" +build