Skip to content

Commit

Permalink
Experiment (#233)
Browse files Browse the repository at this point in the history
* add toolchain files
* add toolchain setup to readme
  • Loading branch information
dshuffma-ibm authored Jun 11, 2018
1 parent 971dba8 commit 6218ef5
Show file tree
Hide file tree
Showing 11 changed files with 527 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .bluemix/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Toolchain for Marbles

This folder contains code to integrate IBP (IBM Blockchain Platform) and Marbles via IBM DevOps (aka Toolchain).
To see this code in action click the "Get Marbles" button below.
**This will create a IBM Blockchain Platform service instance and a nodes js application in IBM Cloud** (which will incur costs to your IBM Cloud account).

[![Deploy To IBM Cloud](./create_marbles_tc_button.png)](https://console.bluemix.net/devops/setup/deploy/?repository=https%3A//github.com/ibm-blockchain/marbles&branch=master)

(It will take between 5 - 8 minutes)

### Information
- [Marbles' GitHub Repo](https://github.com/ibm-blockchain/marbles)
- [Toolchain's GitHub Repo](https://github.com/open-toolchain/sdk/wiki)
- [IBM Blockchain Platform Info](https://console.bluemix.net/developer/blockchain/dashboard)
Binary file added .bluemix/create_marbles_tc_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions .bluemix/deploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"messages": {
"$i18n": "locales.yml"
},
"title": {
"$ref": "#/messages/deploy.title"
},
"description": {
"$ref": "#/messages/deploy.description"
},
"longDescription": {
"$ref": "#/messages/deploy.longDescription"
},
"type": "object",
"properties": {
"cf-region": {
"description": "The IBM Cloud region",
"type": "string"
},
"cf-organization": {
"description": "The IBM Cloud org",
"type": "string"
},
"cf-space": {
"description": "The IBM Cloud space",
"type": "string"
},
"cf-app-name": {
"description": {
"$ref": "#/messages/deploy.appDescription"
},
"type": "string",
"pattern": "\\S"
}
},
"required": [
"cf-region",
"cf-organization",
"cf-space",
"cf-app-name"
],
"form": [
{
"type": "validator",
"url": "/devops/setup/bm-helper/helper.html"
},
{
"type": "text",
"readonly": false,
"title": {
"$ref": "#/messages/deploy.appName"
},
"key": "cf-app-name"
},
{
"type": "table",
"columnCount": 4,
"widths": [
"15%",
"28%",
"28%",
"28%"
],
"items": [
{
"type": "label",
"title": ""
},
{
"type": "label",
"title": {
"$ref": "#/messages/region"
}
},
{
"type": "label",
"title": {
"$ref": "#/messages/organization"
}
},
{
"type": "label",
"title": {
"$ref": "#/messages/space"
}
},
{
"type": "label",
"title": {
"$ref": "#/messages/prodStage"
}
},
{
"type": "select",
"key": "cf-region"
},
{
"type": "select",
"key": "cf-organization"
},
{
"type": "select",
"key": "cf-space"
}
]
}
]
}
29 changes: 29 additions & 0 deletions .bluemix/locales.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
root:
$ref: ./nls/messages.yml
de:
$ref: ./nls/messages_de.yml
en-AA:
$ref: ./nls/messages_en_AA.yml
en-RR:
$ref: ./nls/messages_en_RR.yml
en-ZZ:
$ref: ./nls/messages_en_ZZ.yml
es:
$ref: ./nls/messages_es.yml
fr:
$ref: ./nls/messages_fr.yml
it:
$ref: ./nls/messages_it.yml
ja:
$ref: ./nls/messages_ja.yml
ko:
$ref: ./nls/messages_ko.yml
pt-BR:
$ref: ./nls/messages_pt_BR.yml
zh:
$ref: ./nls/messages_zh.yml
zh-HK:
$ref: ./nls/messages_zh_HK.yml
zh-TW:
$ref: ./nls/messages_zh_TW.yml
Binary file added .bluemix/marbles-36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions .bluemix/nls/messages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
template.name: "Create toolchain: Marbles sample for IBM Blockchain"
template.description: "\n This toolchain will deploy a Marbles sample application against a IBM Blockchain Platform network. \n\n The toolchain starts by creating your own repository of the Marbles code. This repo is connected to a Delivery Pipeline which means if you update the code in your GitHub repo, the Deployment Pipeline will detect it and deploy your changes. The toolchain also creates a **new Blockchain Platform service instance**, which is your blockchain network.\n\n **You do not need to change any of the options on the right**, though you may tweak configurations if you need to. \n\nYou may need to authorize IBM Cloud with your GitHub account before you can create the toolchain."
template.gettingStarted: "Your Toolchain is ready! **Click the \"Delivery Pipeline\"** tile below to see **Marble's** build status."
deploy.title: "Marbles Deploy Stage"
deploy.description: "Marbles toolchain"
deploy.longDescription: "The Delivery Pipeline powers your continuous integration. It will update/deploy Marbles whenever you push Git commits to your fork and branch."
deploy.appDescription: "Marbles is a simple asset transfer demonstration using Hyperledger Fabric"
deploy.appName: "Marbles"
region: "Region"
organization: "Organization"
space: "Space"
prodStage: "Pipeline Location"
headerSVG.issueTracker: "ISSUE TRACKER"
headerSVG.gitHub1: "GitHub"
headerSVG.think: "THINK"
headerSVG.code: "CODE"
headerSVG.deliver: "DELIVER"
headerSVG.run: "RUN"
headerSVG.repository: "REPOSITORY"
headerSVG.gitHub2: "GitHub"
headerSVG.pipeline: "PIPELINE"
headerSVG.bluemix: "BLUEMIX"
headerSVG.ibmCloud: "IBM Cloud"
customtool.title: "Marbles Application"
customtool.description: "Description"
customtool.longDescription: "Long Description"
customtool.lifecyclePhase: "Lifecycle phase"
customtool.imageUrl: "Icon Url"
customtool.documentationUrl: "Documentation Url"
customtool.name: "Name"
customtool.dashboard_url: "Dashboard Url"
customtool.additional-properties: "skip"
Loading

0 comments on commit 6218ef5

Please sign in to comment.