This is a tool to be used in command line to create and publish slug artefacts for a given microservice.
How to create an executable fat jar?
How to create and publish a slug?
The following environment variables have to be set:
The following environment variables are optional:
INCLUDE_FILES- a comma separed list of file paths to be included in the root of the slug
Once the variables are set and a fat jar is created, slug can be built by issuing a command:
java -jar path-to-slug-builder-fat-jar repo-name x.x.x
Publishing a fat jar
At the moment the assembly task is not executed on
publish-local and it's not recommended to publish fat jars (more on that here). However, this can be changed as described in the sbt-assembly documentation.
This code is open source software licensed under the Apache 2.0 License.