This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-06
Channels
- # babashka (40)
- # beginners (14)
- # calva (3)
- # cider (7)
- # clerk (40)
- # clj-kondo (8)
- # cljfx (3)
- # clojure (79)
- # clojure-berlin (1)
- # clojure-denver (14)
- # clojure-europe (30)
- # clojure-nl (6)
- # clojure-norway (21)
- # clojure-uk (4)
- # clojurescript (10)
- # conjure (4)
- # data-science (13)
- # emacs (21)
- # events (8)
- # hoplon (7)
- # hyperfiddle (25)
- # lsp (11)
- # matrix (1)
- # off-topic (110)
- # pathom (11)
- # pedestal (7)
- # reagent (13)
- # reitit (16)
- # ring (10)
- # shadow-cljs (6)
- # timbre (3)
- # vim (8)
- # wasm (3)
Is cheshire.core
still aliased as json
? I get a "Could not resolve symbol: json" when trying to use json
.
Works for me. Can you provide more detailed description what exactly doesn't work in your case?
➜ /tmp ./bb
Babashka v1.3.179 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (json/parse-string "{}")
{}
➜ /tmp bb
Babashka v1.3.180 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (json/parse-string "{}")
{}
They aren’t, no. The usual pattern is to do this:
{:tasks
{:init (require '[cheshire.core :as json])
test (prn (json/parse-string "{}"))}}
hi @retrogradeorbit, I added an issue to bbssh regarding unix sockets - access remote docker host https://github.com/epiccastle/bbssh/issues/12 . It looks like it's possible to do with Jsch (there is an example). I would like to use it with contajners from @rahul080327 to manage some swarm clusters .
Perhaps this comes in handy too: https://github.com/babashka/babashka.curl#unix-sockets
thanks @U04V15CAJ
I added an example that verifies jsch allows to open a remote unix socket as a local port.
#CUHG31VR6 is also the channel where you can maybe post a link to this question, not sure if @retrogradeorbit has seen it here
@U011NGC5FFY thanks for linking me to this. I missed it last week. If Jsch supports this it should be not much work to add it to bbssh.
@U011NGC5FFY what platform are you on?
Ok test artifact is available here https://app.circleci.com/pipelines/github/epiccastle/bbssh/239/workflows/134684bc-7d9b-4179-b48c-0f4d99b25ef2/jobs/465/artifacts
you can put the binary somewhere and then use it like (pods/load-pod "path/to/test/bbssh" {:transport :socket})
I've tested this and it works so I think it can be released. Ran it 100 times in a loop.
also, a curiosity can bbssh be used in normal clojure code? i.e. not as an external process started by bb . Planning to make some suggestions for contajners docs
I hope this is acceptable: https://github.com/lispyclouds/contajners/pull/21 . cc @rahul080327
> also, a curiosity can bbssh be used in normal clojure code? No. My long term plan is to make a clj ssh library that has the same API, so that cljc code could be written that targets bb and clj.
you can use the pods API from normal Clojure (but it will still spin up a new process running the pod, like in bb)
@U011NGC5FFY 0.5.0 will be available as soon as @U04V15CAJ merges https://github.com/babashka/pod-registry/pull/79
I added a guide on contajners side https://github.com/lispyclouds/contajners/pull/22 . cc @rahul080327