Gitpod学习第一篇——Gitpod介绍

本篇文档从官方介绍直译过来,主要包括如下几个内容git

1.什么是Gitpodgithub

2.Gitpod能给咱们带来什么改变编程

从官网介绍,Gitpod是一个基于Chorom Cloud平台的在线IDE,它能够快速的启动一个基于大多数流行语言的开发环境,而且能够很顺畅的进行开发。浏览器

如下是原文介绍:架构

Whether you just want to hack, have code to review or feel like trying something new on GitHub, Gitpod launches a ready-to-code dev environment with a single click.eclipse

Because Gitpod is based on OSS tech like VS Code, Docker and Kubernetes, it is familiar, comprehensive, extensible, and easy to use. With deep GitHub integration, tools for sharing, and a focus on usability, Gitpod contains your entire dev workflow in a browser tab.ide

Unlike traditional cloud and desktop IDEs, Gitpod understands the context and prepares the IDE automatically. For instance, if you are creating a Gitpod workspace from a GitHub pull request, the IDE will open in code-review mode.

Also, Gitpod workspaces are meant to be disposable. That is, you do not need to maintain anything. They are created when you need them, and you can forget about them when you are done. Simply go to GitHub and create a fresh workspace whenever you need one.

The IDE is open-source and based on Eclipse Theia. Theia is highly extensible and builds upon mature technologies such as TypeScript, VS Code, Webpack, and Node.js.

This site provides all the details on how to use Gitpod and Theia. If you have questions or want discuss something, please join the Gitpod community on Spectrum.

工具

翻译过来就是:测试

不管您只是想要修改代码、查看代码,仍是想在GitHub上尝试新东西,Gitpod均可以经过单击启动一个现成的代码开发环境。ui

由于Gitpod是基于VS Code、Docker和Kubernetes等OSS技术,因此它熟悉、全面、可扩展且易于使用。经过深刻的GitHub集成、用于共享的工具和对可用性的关注,Gitpod将您的整个开发工做流程包含在一个浏览器选项卡中。

与传统的云和桌面IDE不一样,Gitpod可以理解环境并自动准备IDE。例如,若是您从GitHub pull请求建立Gitpod工做区,IDE将以代码审查模式打开。

此外,Gitpod工做区是一次性的。也就是说,您不须要维护任何东西。它们是在您须要时建立的,完成后您能够忘记它们。只要去GitHub,在须要的时候建立一个新的工做空间。

 该IDE是开源的,基于Eclipse Theia。Theia是高度可扩展的,构建于成熟的技术之上,如TypeScript、VS代码、Webpack和Node.js。

简单来讲,就是若是你已经很是熟练使用VS Code进行开发的话,那么使用Gitpod将会无比的简单,由于从书写规范来讲,这仅仅是VS Code的插件化扩展。

但不单单是这样,有几个关键是Gitpod很是突出的地方:

1.集成Github,也就是说,你彻底能够在github上经过Gitpod启动一个已经写好了或者半成品的项目,不必再clone到本地而后使用JetBrains或者eclipse家族中的ide进行开发。

2.基于Docker和Kubernetes,经过容器技术,彻底可使用一个隔离的只专一于该项目自己的运行环境进行快速开发部署,而不须要再一步步安装依赖环境和环境变系统变量等繁琐配置,能够快速的进行开发测试;

3.基于浏览器,这一点能够说是优势也是缺点,基于浏览器必然会大大的节约内存等相关资源,可是这样也必然限制了项目的扩展性,并且也对cloud必须极度依赖。但好在,大多数状况下,咱们不可能处于一个无网的状态下编程。

 

Gitpod.io在三个不一样区域的Google Cloud基础架构上托管的多个Kubernetes集群中运行:

Gitpod Cluster Map

启动工做空间时,Gitpod将自动选择最接近您所在位置的集群,并在其中启动Kubernetes窗格。所请求的git存储库将被克隆,并检出您须要的分支。并且,Gitpod运行为该git仓库状态配置的全部脚本。