This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-11
Channels
- # aleph (3)
- # announcements (3)
- # aws (7)
- # babashka (121)
- # beginners (82)
- # calva (40)
- # chlorine-clover (37)
- # clj-kondo (68)
- # cljsrn (4)
- # clojure (43)
- # clojure-australia (1)
- # clojure-dev (6)
- # clojure-europe (15)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-provo (3)
- # clojure-spec (23)
- # clojure-taiwan (1)
- # clojure-uk (21)
- # clojurescript (214)
- # code-reviews (1)
- # conjure (4)
- # core-async (10)
- # cursive (52)
- # datahike (5)
- # datascript (5)
- # datomic (62)
- # duct (1)
- # emacs (4)
- # fulcro (8)
- # graalvm (1)
- # helix (1)
- # honeysql (5)
- # integrant (1)
- # jackdaw (32)
- # jobs (3)
- # jobs-discuss (16)
- # juxt (1)
- # kaocha (3)
- # lsp (6)
- # malli (2)
- # meander (6)
- # nrepl (1)
- # off-topic (46)
- # other-languages (4)
- # pathom (7)
- # polylith (13)
- # re-frame (3)
- # releases (2)
- # shadow-cljs (56)
- # spacemacs (15)
- # tools-deps (3)
- # unrepl (1)
- # utah-clojurians (1)
Does anyone know of a pre-built script, tool, or whatever that would let me spin up a specific ec2 instance, clone a github project, open a nrepl in that project, and allow me to connect to it locally? I can do all of that stuff myself, but, as usual, the devil is in the details. Was hoping to not lose a few hours if there's something pre-built to do that 😅 My use case is I have some huge batch jobs I want to run on a 64+ core machine and be able to interact with the results in the repl.
Closest thing off the top of my mind is: https://www.gitpod.io/ but unfortunately they're kind of a closed SaaS type deal, and won't really let you do it on your own account/EC2 instance. I'm not a fan of their service for this reason (waaaay too much on the side of ease instead of simplicity), but maybe searching for alternatives in this space will yield something close to what you want?
Huh, interesting. Didn't know there was an actual market for that sort of thing. That looks way more formal that I was looking for, haha.
Yeah, I was surprised myself. I couldn't imagine doing all my dev work on a paid boxed service over the internet just to save 5 minutes of installing dependencies - some of the comments are really funny about how it revolutionizes everything
Technically you should be able to do all of the above with Clojure and cognitect-labs/aws-api: • create a VPC • define security group to allow connection via SSH • create an ec2 instance with user-data script which will clone your code, setup SSH keys necessary for opening a tunnel to to the nrepl server • destroys the VPC, security groups and the EC2 instance when you're done
The easiest option is to install an EC2 from an existing template in IOC, there should be plenty in Terraform or pulumi . Beware of the ones that use the NAT gateway, they can be expensive in case your need a lot of traffic for the batch data. You can the internet gateway. Once the ec2 is setup and patched, ssh to it, install lein and upload your data. I've done a similar setup on my Raspbery pi.