This is a community created service for integration with Box and used in Boomerang Flow Tasks.
- 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
All the available commands are located in the BoxCommand.java
file and they are:
list
- to list box foldersadd
- to add a new box folderjoin
- to add an user to a box folderleave
- to remove an user from a box folderremove
- to remove a box folderupload
- to upload a file to a box folderdownload
- to download a file from boxinfo
- to get the details of a box folder
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
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
- Create Git Tag
- Push Git Tag
- Check Boomerang CICD
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
Apache 2.0