This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-02
Channels
- # adventofcode (153)
- # announcements (29)
- # architecture (6)
- # babashka (5)
- # beginners (197)
- # calva (71)
- # clj-kondo (27)
- # cljfx (4)
- # cljs-dev (33)
- # cljsrn (1)
- # clojure (52)
- # clojure-australia (5)
- # clojure-boston (1)
- # clojure-europe (38)
- # clojure-france (1)
- # clojure-hungary (5)
- # clojure-italy (1)
- # clojure-nl (19)
- # clojure-uk (5)
- # clojurescript (12)
- # conjure (4)
- # core-async (3)
- # cursive (22)
- # datalog (70)
- # datomic (32)
- # deps-new (8)
- # emacs (79)
- # events (2)
- # fulcro (15)
- # graalvm (15)
- # leiningen (2)
- # lsp (5)
- # minecraft (1)
- # nbb (1)
- # off-topic (37)
- # polylith (11)
- # re-frame (9)
- # reagent (1)
- # reitit (3)
- # releases (1)
- # reveal (2)
- # shadow-cljs (35)
- # spacemacs (1)
- # tools-build (4)
- # tools-deps (55)
- # vim (11)
- # xtdb (6)
Can I do anything inside a transaction? Like making a web request to slack or something?
You probably don’t want to; transacting is an intentionally serial process. So any significant work you do inside the transactor will block other transactions from going through.
I see. So maybe my code would do something like transact and afterwards trigger a lambda that makes the slack message?
is there a correct way to ssh tunnel into a compute group? https://docs.datomic.com/cloud/whatis/architecture.html#api-gateway here it says have an api gateway for client access. The goal would be to connect to a running nrepl process
https://github.com/markbastian/replionhas been a great guide for this, although the procedure is much simpler since this summer's new Datomic Cloud.
The new topology makes it easier since there no more is any bastion to go through, and the Datomic instances are publicly exposed to the Internet.
Opening the tunnel is as easy as:
ssh -i/<path-to-key>.pem -L 7000:
where the X vals are your compute instances public DNS.
7000
assumes that's the port you serve nRepl on.
You only need to adjust the security group on the compute instance to let pass the traffic, as shown in Replion's guide (but the guide shows you to do it on the Bastion instance and the compute instance IIRW, but now there is no bastion, only the compute instance to open up).
Yes, let me confirm and screenshot.
which is the security group that counts for a query group stack? There is lambda and loadbalancer group
good luck! Things are errily silent when we miss a detail, but otherwise it's quite easy.
what is missing a detail? Ah you mean if something isn't working there is no warnings and such when trying this
Approximately in this order: 1. Network SSH p22: If your addresses are wrong, some error; if your path to the pem key is wrong, quick auth error 2. Network TCP p7000: If you open up the ports on the wrong SG or source CIDER, etc., IIRW connection will fail quickly with some error, or silently after a long timeout 3. nRepl service: If you forget to start your nRepl server on the appropriate port, long timeout IIRW I could be well off in my predictions. I never can remember which response is caused by which detail missed.
Nice, Benjamin! 🙂
What is the correct way to define a git sha in deps.edn? When I do it like this
io.github.discljord/discljord
{:git/sha "f4942108038463b4c381c1ab152cdb2ae4863b38"
:sha "f4942108038463b4c381c1ab152cdb2ae4863b38"}
then datomic ion dev is happy, but clj
is not
Error building classpath. git coord has both :sha and :git/sha for io.github.discljord/discljord
I fell like the issue is that ion-dev doesn't read the namespaced one. Says "sha missing'" when I only put :git/sha
ion stuff is still using the older tools.deps that doesn't understand :git/sha
but clj should still work with :sha
I guess you'll also need :git/url though
:git/url + full :sha should work in both
can confirm
org.suskalo/discljord
{:git/url "[email protected]:IGJoshua/discljord.git"
:sha "f4942108038463b4c381c1ab152cdb2ae4863b38"}
this worked 🎉