This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-03
Channels
- # announcements (1)
- # babashka (22)
- # beginners (176)
- # calva (10)
- # cider (4)
- # circleci (5)
- # cljsrn (20)
- # clojure (28)
- # clojure-europe (11)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-spec (1)
- # clojure-sweden (2)
- # clojure-uk (29)
- # clojuredesign-podcast (4)
- # clojurescript (38)
- # code-reviews (25)
- # conjure (1)
- # core-typed (1)
- # data-science (16)
- # datomic (23)
- # figwheel-main (16)
- # fulcro (48)
- # helix (9)
- # jobs (3)
- # juxt (5)
- # kaocha (17)
- # malli (19)
- # mount (9)
- # nrepl (4)
- # off-topic (35)
- # pathom (7)
- # re-frame (28)
- # reagent (26)
- # reitit (1)
- # releases (1)
- # remote-jobs (5)
- # sci (6)
- # shadow-cljs (36)
- # spacemacs (3)
- # sql (8)
- # tools-deps (13)
- # unrepl (1)
- # vim (4)
- # xtdb (8)
Is there a best way to make an HTTP POST request from a babashka script?
@jakob.durstberger (curl/post ...)
Sorry I missed that part of the README. My bad 😕 Thank you
is it possible to build a self executing bb script?
where should i start?
@danieltanfh95 on OSX something like this:
echo '#!/usr/bin/env bb
(println "hello")' >
chmod +x
./hello.bb
Sorry for the docker newb question. The docker image (https://hub.docker.com/r/borkdude/babashka/) linked from the readme runs the command “bb”. Is it possible to use the same image to execute a file instead? I’d like to use a docker image with babashka preinstalled to run a scrip on my CI
@jakob.durstberger yeah:
$ echo "(+ 1 2 3)" > foo.clj
$ docker run -v $PWD:/script borkdude/babashka bb -f script/foo.clj
6
Ah so then I use the docker in docker image for that, right?
I was just showing how you can run the babashka docker image on your local machine. CI might be different
We are using GitLab CI so each job in there is started from a docker image.
So I have to use an image that has docker installed to then run the docker run ...
command.
Yeah I think I’ll figure it out from here
Thanks for the help
So far babashka is really awesome to use, thank you for creating it
@jakob.durstberger That sounds like a bad idea, don't use Docker in docker.
I guess I can also create a docker image based on yours that just runs the shell at the end.
The last option is probably the easiest in the end
Thanks, I’ll try that