This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-22
Channels
- # announcements (11)
- # architecture (7)
- # babashka (26)
- # beginners (314)
- # calva (20)
- # chlorine-clover (1)
- # cider (5)
- # circleci (27)
- # clara (6)
- # clj-kondo (41)
- # cljsrn (6)
- # clojure (120)
- # clojure-berlin (2)
- # clojure-czech (2)
- # clojure-dev (4)
- # clojure-europe (45)
- # clojure-france (4)
- # clojure-germany (1)
- # clojure-nl (5)
- # clojure-uk (20)
- # clojuredesign-podcast (8)
- # clojurescript (6)
- # conjure (42)
- # datascript (5)
- # datomic (21)
- # deps-new (28)
- # duct (1)
- # fulcro (36)
- # graalvm (10)
- # graphql (24)
- # jackdaw (19)
- # jobs (2)
- # jobs-discuss (46)
- # kaocha (6)
- # malli (26)
- # off-topic (21)
- # parinfer (5)
- # re-frame (10)
- # sci (19)
- # shadow-cljs (95)
- # tools-deps (24)
- # vim (3)
@borkdude is there a special trick to make #!/usr/bin/env bb
style scripts run within emacs? on a project where a .git/hooks/pre-commit
uses bb
but it doesn't work when used from magit
env: bb: No such file or directory
edit: found https://github.com/purcell/exec-path-from-shellfwiw, if you start your emacs from a terminal and things work it may mean that env var settings for certain dot files could use being elsewhere. i have this issue from time to time when using different distributions of linux as the proper location can vary. for example, currently i place some things in ~/.profile, but depending on one's shell and other factors, it may be better to put such settings in other files. if you're using macos there may be a relatively common answer to this issue (though if you've decided to use a shell other than the default possibly it may differ).
@robert-stuttaford yes, that's also in my init.el:
exec-path-from-shell ;; fix path in Emacs by reading from .zshenv
along with this:
(when (memq window-system '(mac ns))
(setenv "SHELL" "/bin/zsh")
(exec-path-from-shell-initialize)
(exec-path-from-shell-copy-envs
'("PATH")))
anyone used babashka for high level k8s configuration?
@danieltanfh95 Does k8 use yaml? I do use it for CircleCI config generation. Not so familiar with k8s myself.
yeah it does
there’s a bunch of repeated stuff that i’m wondering if it’s worth to semi automate it away with a configuration-for-configuration kinda setup
oh right, here it is @danieltanfh95: https://github.com/babashka/babashka-sql-pods/blob/master/script/generate_circleci.clj
i’ll take a look when i get home
thanks!
Are people already using Babashka to write linux services?
I’m considering porting aws-codedeploy-agent to Babashka https://github.com/aws/aws-codedeploy-agent/blob/master/init.d/codedeploy-agent
Don't think so. Just wondering, might be quicker to see an example in case there are pitfalls
I'll make a release at the end of the week that includes httpkit client and server (the server is marked experimental, until I'm convinced this is a good choice :))
Makes sense. I don't think they are needed for this particular case if that's what you mean, I'm guessing babashka.curl is enough for this one
The next babashka will include httpkit client and server and many improvements! Pre-release binaries: - macOS https://11871-201467090-gh.circle-artifacts.com/0/release/babashka-0.2.1-SNAPSHOT-macos-amd64.zip - linux https://11869-201467090-gh.circle-artifacts.com/0/release/babashka-0.2.1-SNAPSHOT-linux-amd64.zip - Windows https://ci.appveyor.com/api/buildjobs/5a76yn0fnh78nrgp/artifacts/babashka-0.2.1-SNAPSHOT-windows-amd64.zip Consider testing! Official release will follow within a few days.
Hey I have hacked a super basic pod to interact with dynamodb using the go aws sdk https://github.com/tzzh/pod-tzzh-aws, I have only added a few dynamodb functions for now but it should be really easy to add other dynamodb functions (and AWS components). I don’t write go very often so the code might not be great at the moment but if I end up using it a lot I’ll try and make it better so it can be useful for other people as well
Awesome. This is exactly how I envisioned something around AWS (either go, python or clj graal-native)
yeah you mentioned it ~10 days ago then I was on holidays for a week but that’s the first thing I did on my day back 😂
added it here: https://github.com/borkdude/babashka/blob/master/doc/libraries.md#pods