Giter VIP home page Giter VIP logo

masterthesisbot's Introduction

Initialize automated deploy pipeline for openwhisk actions (as soon as repository is updated redeploy function on openWhisk)

cd C:\Users\IBM_ADMIN\Box Sync\Work\Coding\0masterarbeit\Github\masterThesisBot

  1. wsk.exe download
  2. wsk.exe from CLI
  3. in local cli --> wsk bluemix login --sso --namespace [email protected]_ben
  4. export whisk auth --> wsk property get --auth --> text.txt
  5. prepare cli in deploy pipeline with script and use whisk auth
  6. test action --> wsk action invoke --blocking --result conversationPackage/packageAction --param lines "["and now", "for something completely", "different" ]"

wsk action list

next steps

  • develop openwhisk locally and push automatically to git

  • normally necessary to deploy to cloud before testing the code

  • how to do it local: https://www.raymondcamden.com/2017/01/09/quick-tip-for-testing-openwhisk-actions-locally

  • lately I'm into serverless architectures

  • they are for some kind of applications like chatsbots or iot applications my preffered way

  • still i don't see a lot projects using them

  • without thinking about automatic deployment and using git its easy to setup and usable

  • I want to show how i configured an automatic pipeline in order to deploy automatically after a new push

  • using external npm packages and dependencies as well

  • explain process general process

  • there are some usefull preinstalled libaries like request to perform api calls

  • start with the project setup - git, local testing, development, automatic deployment, example installation of conversation service (external npm packages)

  • but not a lot of different preinstalled packages so what can you do?

  • install them an abuse of the concept??

  • concept of serverless

  • one of the disadvatages of serverless approach is that developer basically rely on provider of the service for devOps tools

  • example conversation service - create a conversation service and copy the username, password, and version into environment variables

  • Usage of environment variables via deploy script

  • need to create a package in script and add to this package environment variables to ensure security e.g. for credentials

  • in code you can easily use them

  • open tasks: if in built script for first time create/ afterwards update

masterthesisbot's People

Contributors

benediktkrueger avatar

Watchers

James Cloos 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.