From 7056225cd71032c24b1ce89ec427e2f9ce902e17 Mon Sep 17 00:00:00 2001 From: rick Date: Thu, 20 May 2021 02:33:53 +0000 Subject: [PATCH] Add GitPod config files Signed-off-by: rick --- .gitpod.Dockerfile | 11 +++++++++++ .gitpod.yml | 13 +++++++++++++ README.md | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml create mode 100644 README.md diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..aa45c5f --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,11 @@ +FROM gitpod/workspace-full + +# More information: https://www.gitpod.io/docs/config-docker/ +# the following tools are not crucial tools here, don't need to install a particular version +# * GitHub CLI (install via hd install cli/cli) +# * s2i (hd install openshift/source-to-image) +RUN sudo rm -rf /usr/bin/hd && \ + curl -L https://github.com/LinuxSuRen/http-downloader/releases/download/v0.0.29/hd-linux-amd64.tar.gz | tar xzv && \ + sudo mv hd /usr/local/bin && \ + hd install cli/cli && \ + hd install openshift/source-to-image diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..762a1d9 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,13 @@ +image: + file: .gitpod.Dockerfile + +tasks: + - init: | + git config --global user.name $GIT_AUTHOR_NAME + git config --global user.email $GIT_COMMITTER_EMAIL + gh repo fork --remote + docker build . + +vscode: + extensions: + - eamodio.gitlens diff --git a/README.md b/README.md new file mode 100644 index 0000000..216354f --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/kubesphere/s2i-binary-container) +