Giter Club home page Giter Club logo

worker.box's Introduction

Box Worker

This is a community created service for integration with Box and used in Boomerang Flow Tasks.

Design

  • CLI application developed with Java and Spring Boot.
  • This does not rely on the Boomerang Worker CLI or Boomerang Worker Core. As such the Lifecycle watcher must be enabled when running as a Boomerang Flow task

Commands

All the available commands are located in the BoxCommand.java file and they are:

  • list - to list box folders
  • add - to add a new box folder
  • join - to add an user to a box folder
  • leave - to remove an user from a box folder
  • remove - to remove a box folder
  • upload - to upload a file to a box folder
  • download - to download a file from box
  • info - to get the details of a box folder

Developing

How to run locally with Java

Build and run the JAR using the following command:

VERSION=<tag> && mvn clean package -Dversion.name=$VERSION && ENTERPRISEID=<enterpriseId> && CLIENTID=<clientId> && CLIENTSECRET=<clientSecret> && PUBLICKEYID=<publicKeyId> && PRIVATEKEY=<privateKey> && PASSPHRASE=<passphrase> && java -jar target/service-box-$VERSION.jar box list --enterpriseId $ENTERPRISEID --clientId $CLIENTID --clientSecret $CLIENTSECRET --publicKeyId $PUBLICKEYID --privateKey $PRIVATEKEY --passphrase $PASSPHRASE

How to run locally with Docker

Build and run the docker image using the following command:

VERSION=<tag> && mvn clean package -Dversion.name=$VERSION && docker build -t boomerangio/box-service:$VERSION --build-arg BMRG_TAG=$VERSION . && ENTERPRISEID=<enterpriseId> && CLIENTID=<clientId> && CLIENTSECRET=<clientSecret> && PUBLICKEYID=<publicKeyId> && PRIVATEKEY=<privateKey> && PASSPHRASE=<passphrase> && docker run -it boomerangio/box-service:$VERSION box list --enterpriseId $ENTERPRISEID --clientId $CLIENTID --clientSecret $CLIENTSECRET --publicKeyId $PUBLICKEYID --privateKey $PRIVATEKEY --passphrase $PASSPHRASE

Packaging

Automatic

  1. Create Git Tag
  2. Push Git Tag
  3. Check Boomerang CICD

Manual

VERSION=<tag> && mvn clean package -Dversion.name=$VERSION && docker build -t boomerangio/box-service:$VERSION --build-arg BMRG_TAG=$VERSION . && docker push boomerangio/box-service:$VERSION

License

Apache 2.0

worker.box's People

Contributors

georgesafta avatar morarucostel avatar tlawrie 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.