Giter VIP home page Giter VIP logo

cloud-slang-content's Introduction

cloud-slang-content

CloudSlang is a YAML based language for writing human-readable workflows for the Cloud Slang Orchestration Engine (Score). This repository includes CloudSlang flows and operations.

Circle CI Build Status

Getting started:

Pre-Requisite: Java JRE >= 7
  1. Download the CloudSlang CLI file named cslang-cli-with-content:
  2. Extract it.
  3. Go to the folder cslang/bin/
  4. Run the executable :
  • For Windows : cslang.bat
  • For Linux : bash cslang
  1. Run a simple example print text flow: run --f ../content/io/cloudslang/base/print/print_text.sl --i text=first_flow --cp ../content/

Command line arguments in the above example:

Argument Description
--f Location of the flow to run.
--i Arguments the flow takes as input, for multiple arguments use a comma delimited list (e.g. var1=value1,var2=value2).
--cp Classpath for the location of the content. Required when content imports other content.

Note: Some of the content is dependent on external python modules. If you are using the CLI to run your flows, you can import external modules by doing one of the following:

  • Installing packages into the python-lib folder
  • Editing the executable file

Installing packages into the python-lib folder:

Prerequisites: Python 2.7 and pip.

You can download Python (version 2.7) from [here] (https://www.python.org/). Python 2.7.9 and later include pip by default. If you already have Python but don't have pip, see the pip [documentation] (https://pip.pypa.io/en/latest/installing.html) for installation instructions.

  1. Edit the requirements.txt file in the python-lib folder, which is found at the same level as the bin folder that contains the CLI executable.
  2. Enter the Python package and all its dependencies in the requirements file.
    • See the pip documentation for information on how to format the requirements file.
  3. Run the following command from inside the python-lib folder:
    pip install -r requirements.txt -t .
    Note: If your machine is behind a proxy you will need to specify the proxy using pip's --proxy flag.

Note: If you have defined a JYTHONPATH environment variable, you will need to add the python-lib folder's path to its value.

Editing the executable file

  1. Open the executable found in the bin folder for editing.
  2. Change the Dpython.path key's value to the desired path.

Documentation :

All documentation is available on the CloudSlang website.

Get Involved

Read our contributing guide here.

Contact us here.

cloud-slang-content's People

Stargazers

 avatar

Watchers

 avatar  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.