Fooling around with Spotify's docker-client library.
Built with Scala 2.12, which requires Java 8+.
Before running the program, control the machine that docker client connects to by setting DOCKER_HOST
.
It defaults to localhost
, so there is no need to type this:
export DOCKER_HOST=localhost
Right now this is the only way:
$ sbt run
B0rked.
Maybe I'll figure out the problem with sbt-assembly
at some point.
The bin/run
Bash script assembles this project into a fat jar and runs it.
Sample usage, which runs the Main
entry point in `src/main/scala/Main.scala:
$ bin/run Main
The -j
option forces a rebuild of the fat jar.
Use it after modifying the source code.
$ bin/run -j Main
Here.