From 6aa2389e6fe4623b1b3ce3820c99b9fdb1f3950a Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 21 Mar 2020 14:37:29 +0100 Subject: [PATCH] README --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 63499211..77da1088 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,10 @@ You may also download a binary from [Github](https://github.com/borkdude/babashka/releases). For linux there is a static binary available which can be used on Alpine. +## Docker + +Check out the image on [Docker hub](https://hub.docker.com/r/borkdude/babashka/). + ## Usage ``` shellsession @@ -1062,6 +1066,26 @@ $ sha1.clj babashka "0AB318BE3A646EEB1E592781CBFE4AE59701EDDF" ``` +### Package script as Docker image + +`Dockerfile`: +``` dockerfile +FROM borkdude/babashka +RUN echo $'\ +(println "Your command line args:" *command-line-args*)\ +'\ +>> script.clj + +ENTRYPOINT ["bb", "script.clj"] +``` + +``` shell +$ docker build . -t script +... +$ docker run --rm script 1 2 3 +Your command line args: (1 2 3) +``` + ## Thanks - [adgoji](https://www.adgoji.com/) for financial support