Coder Social home page Coder Social logo

libingw / toolchain-to-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-toolchain/toolchain-to-template

0.0 1.0 0.0 54 KB

This is a set of scripts useful for cloning an existing toolchain so that it can be duplicated using an OTC Template

Shell 100.00%

toolchain-to-template's Introduction

toolchain-to-template

The toolchain-to-template script takes a Toolchain URL and will generate an OTC Template in the current folder that when run creates a clone of you original toolchain. For example:

./toolchain-to-template.sh https://cloud.ibm.com/devops/toolchains/2665ce98-ea71-43e8-b723-19bafdb7a541?env_id=ibm:yp:us-east

SETUP

  1. The toolchain-to-template.sh script requires that the following utilities are pre-installed on your PATH: ibmcloud, curl, jq 1.6 or above (https://stedolan.github.io/jq/), and yq 3.x or 2.x (https://github.com/mikefarah/yq)
  2. Create a temporary work folder where the script will generate your template
  3. Download and copy toolchain-to-template.sh to your work folder
  4. Determine whether your toolchain is in the public cloud or in a dedicated environment.
    The following environments will be detected and will set PUBLIC_CLOUD=true, with other environments considered as dedicated;
  5. Log in to respective CLI tool:
  6. Visit your Toolchain in the browser and copy the URL

RUN THE SCRIPT

In a shell run the following: ./toolchain-to-template.sh https://your-toolchain-url

The script generates a .bluemix folder that contains your template. To use the template, create a git repo and copy the .bluemix folder into it. Commit, push and then visit your repository on an OTC Setup/Deploy page.

e.g https://cloud.ibm.com/devops/setup/deploy?env_id=ibm:yp:us-south&repository=https://your_repository_url

Note: if your repository is private:

Open the Setup/Deploy URL in a browser and click "Create" and the template will produce a newly minted clone of your original toolchain.

toolchain-to-template's People

Contributors

jauninb avatar maire-kehoe avatar skaegi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.