• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

spinnaker/deck: Management UI for Spinnaker

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

spinnaker/deck

开源软件地址(OpenSource Url):

https://github.com/spinnaker/deck

开源编程语言(OpenSource Language):

TypeScript 67.7%

开源软件介绍(OpenSource Introduction):

Spinnaker UI

Branch Build

Prerequisites

Make sure that node and yarn are installed on your system. The minimum versions for each are listed in package.json.

Quick Start

Run the following commands (in the deck directory) to get all dependencies installed in deck and to start the server:

  • yarn
  • yarn modules
  • yarn start

The app will start up on localhost:9000.

When editing core or any other cloud provider package, please run the following in that folder

  • yarn dev

If your local dev setup ends up in a corrupt state with missing npm modules, please run yarn fixup from deck and that should reset your state.

Environment variables

Environment variables can be used to configure application behavior. The following lists those variables and their possible values:

  • AUTH enable/disable authentication (default is disabled, enable by setting AUTH=enabled).
  • TIMEZONE set the default timezone (default is 'America/Los_Angeles' - see http://momentjs.com/timezone/docs/#/data-utilities/ for options)
  • DECK_CERT enable SSL (set to the fully qualified path to cert file, and DECK_KEY must be set to the fully qualified path to the key file)

The following external resources can be specified with environment variables:

  • API_HOST overrides the default Spinnaker API host.
  • AUTH_ENABLED determines whether Deck will attempt to authenticate users via Gate.

For example, API_HOST=http://spinnaker.prod.netflix.net yarn start will run Deck with http://spinnaker.prod.netflix.net as the API host.

Testing

To run the tests within the application, run yarn test.

Developing things locally? You may want to run gate locally (which runs on port 8084) as well. Gate is the service that hosts the spinnaker REST API. Then run deck like this:

API_HOST=http://localhost:8084 yarn start

Building & Deploying

To build the application, run yarn modules && yarn build. The built application lives in build/.

Graphql

the core package is using graphql queries and mutation to interact with the backend (currently, only the managed components). To generate the TS types and the Apollo hooks, run yarn graphql:generate from core.

Conventions

It's a work in progress, but please try to follow the conventions here.

Customizing the UI

It's certainly doable - we're in the middle of some significant changes to our build process, which should make it easier. For now, you can look at the all modules to get an idea how we are customizing Deck internally. Expect a lot of this to change, though, as we figure out better, cleaner hooks and integration points. And we're happy to provide new integration points (or accept pull requests) following those existing conventions if you need an integration point that doesn't already exist.

Join Us

Interested in sharing feedback on Spinnaker's UI or contributing to Deck? Please join us at the Spinnaker UI SIG!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap