16
IBM Cloud Pak for Applications IBM Cloud / July 2019 / © 2019 IBM Corporation

IBM Cloud Pak for Applications - img-bss.csdnimg.cn

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud Pak for Applications

IBM Cloud / July 2019 / © 2019 IBM Corporation

Page 2: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation2

IBM Cloud Pak for Application

Page 3: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

Cloud Pak for Applications分享

Page 4: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation4

什么是codewind?

Codewind 是一个开源项目,它可以在其支持的IDE中,帮助我们更快的创建本地云应用开发环境。

1. 支持的IDE:

• Visual Studio Code

• Eclipse

2. 使用Codewind

• 可以从模板创建应用程序,

• 支持在桌面上的Docker容器中启动,更新,测试和调试,

• Codewind提供验证以确保应用程序遵循最佳实践。

https://www.eclipse.org/codewind/overview.html

https://github.com/eclipse/codewind

Page 5: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation5

如何使用codewind?

Codewind作为一个插件,可以被安装在vscode IDE中。

1. 在vscode市场搜索 Codewind并安装

前提环境: Installed docker

• docker pull “eclipse/codewind-performance-amd64” image

• docker pull “eclipse/codewind-pfe-amd64” image

2. 启动codewind

• docker run “eclipse/codewind-performance-amd64” image

• docker run “eclipse/codewind-pfe-amd64” image

Page 6: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation6

如何使用codewind?

Codewind作为一个插件,可以被安装在vscode IDE中。

3. 选择template并创建工程

前提环境: Installed docker

• 选择对应开发语言的template

• 输入项目名称 -> 回车

4. 启动项目

• docker 创建container

• 点击“Show all logs”去查看构建的log

• 等待构建完成之后,docker ps –a 会查看到启动的container

Page 7: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation7

为什么使用codewind?

• 无缝契合云计算环境下的应用开发需求

• 方便快捷的应用创建及构建

• 以container形式启动,方便后续迁移及测试

• 自动集成的性能测试

Page 8: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation8

什么是appsody?

appsody是一个开源项目,它可以为我们提供对应的技术堆栈,使得创建的应用程序能够便捷在container中编译,运行

1. Appsody Stacks

对应应用的编译环境,如Java, Python, Go, NodeJS等。

2. Appsody Hub

对编译环境进行统一高效的管理

3. Appsody CLI

提供命令行,可以通过对应的命令来执行应用的构建及部署

https://appsody.dev/

https://github.com/appsody

Page 9: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation9

什么是appsody?

https://appsody.dev/

https://github.com/appsody

编译环境:

• 运行时环境,如jdk,

• 需要支持的library, 如liberty

Page 10: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation10

如何使用appsody?

appsody作为一个软件包,可以被安装在本地。如mac, 使用 brew install appsody

常用命令:

• appsody list。 查看本地有哪些可用的技术堆栈(编译环境)

• appsody init <技术堆栈>。 初始化一个对应技术堆栈的应用项目

• appsody run。 部署并启动该应用

• appsody stop。 停止该应用

• appsody build。 构建该应用,创建Dockerfile并构建镜像

• appsody deploy 部署应用到k8s cluster

• appsody operator 安装appsody只目标k8s cluster

Page 11: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / © 2018 IBM Corporation11

为什么使用appsody?

• 便捷的编译环境的提供

• 快速的应用的构建,输出image

• 与k8s无缝结合的部署

Page 12: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

12

Tekton

© 2019 IBM Corporation© 2019 IBM Corporation

• PipelineResource 定义了一个对象,该对象是流水线的输入(例如 git 存储库)或输出(例如 docker 镜像).

• PipelineRun 定义了流水线的执行。它引用要运行的 Pipeline 以及要用作输入和输出的 PipelineResources。

• Pipeline 定义了构成流水线的 Tasks。

• Task 定义了一组构建步骤,如编译代码、运行测试以及构建和部署镜像。

Page 13: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

13

kabanero

© 2019 IBM Corporation

CuratedCollections

IntegratedDeveloper Tools

IntegratedDevOps Toolchain

A modern microservices-based framework that simplifies development, build, and continuous deploy of apps for Kubernetes and Knative

Automated end-to-end toolchain from code

check-in to production Kubernetes deploy

事件驱动DevOps

完全可定制化

Simplify building cloud-native apps in

containers for Kubernetes and Knative

兼容并扩展流行的开发工具

提供程序模版

100% open source runtimes and

frameworks optimized for cloud-native

预编译运行时环境

独立控制

Container OrchestrationKubernetes Istio

Services MeshKnativeServing (Serverless)

</>

© 2019 IBM Corporation

Page 14: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

14

kabanero

© 2019 IBM Corporation© 2019 IBM Corporation

Page 15: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

15

kabanero

© 2019 IBM Corporation© 2019 IBM Corporation

Page 16: IBM Cloud Pak for Applications - img-bss.csdnimg.cn

IBM Cloud / April 2019 / © 2019 IBM Corporation

Backup