From 1a7f22631b6541a6044481a8550a9f674747ea70 Mon Sep 17 00:00:00 2001 From: Anurag Rajawat Date: Tue, 8 Nov 2022 16:10:48 +0000 Subject: [PATCH] Initial support for Gitpod (#1946) Signed-off-by: Anurag Rajawat --- .gitpod.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + README.md | 2 ++ 3 files changed, 52 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000..32f2024b0e --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,49 @@ + +# +# 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 +# + +--- +# some useful extensions to have +vscode: + extensions: + - vscjava.vscode-java-pack + - eamodio.gitlens + - redhat.vscode-xml + - donjayamanne.githistory + - asciidoctor.asciidoctor-vscode + +# using prebuilds for the container +github: + prebuilds: + # enable for the default branch (defaults to true) + master: true + # enable for all branches in this repo (defaults to false) + branches: false + # enable for pull requests coming from this repo (defaults to true) + pullRequests: true + # enable for pull requests coming from forks (defaults to false) + pullRequestsFromForks: true + +tasks: + - name: build all + init: > + mvn clean install && + gp sync-done build + + - name: doc-build kubernetes-maven-plugin + init: gp sync-await build + command: | + cd $GITPOD_REPO_ROOT/kubernetes-maven-plugin/doc + mvn clean -Phtml package -Dasciidoctor.outputHtmlDirectory='/var/www/html' + openMode: tab-after \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index aa28da17a7..4da9c0bd2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ Usage: ### 1.11-SNAPSHOT * Fix #1546: Migrate to JUnit5 testing framework * Fix #1935: `oc:remote-dev` goal / `ocRemoteDev` task have wrong log prefixes +* Fix #1946: Initial support for Gitpod ### 1.10.1 (2022-11-16) * Fix #1915: Maven 3.6.3 is still supported diff --git a/README.md b/README.md index 63242b57a4..a71eee30b8 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ [![Twitter](https://img.shields.io/twitter/follow/jkubeio?style=social)](https://twitter.com/jkubeio) +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/eclipse/jkube) +

Eclipse JKube