Fork me on GitHub
#off-topic
<
2019-06-09
>
anonfish16:06:35

Hey all, we launched this today: https://www.producthunt.com/posts/cloudcron 😀 💪 CloudCron lets you run cron jobs in the cloud very easily. Give us a Docker image name, command, arguments, and a cron schedule and we'll send you the output of the command to your preferred endpoint: either email or webhook. Offering free trial for up to $ 15 cost. We want to make it dead-easy to use nifty open-source tools such as lighthouse, curl etc. Building reliable, scalable infrastructure for this took us quite some time to figure out. Please upvote us on ProductHunt so that this gets some visibility.

hmaurer16:06:14

Out of curiosity how do you ensure security on a service like this? Since Docker containers aren’t fully isolated

anonfish17:06:51

@U5ZAJ15P0 We use Kubernetes network policies and resource limits which operate at pods, not containers.

vemv19:06:37

was this implemented in Clojure? any cool insights?

borkdude22:06:51

A while ago I was searching for a similar service, but a bit different: I wanted to put a CLI program behind an endpoint, so I could call it using a request and get the stdout back as the response

borkdude22:06:27

eventually I solved it with nginx + a small php script on a VPS, but I would be happy to have used a service like this

anonfish19:06:03

@vemv Not Clojure. Google Cloud's APIs are barely documented even for Python. Plumbing together 8 GCP components was quite fun though. Learned a lot about enforcing resource limits in Kubernetes clusters. One of the featured examples in our app is lighthouse which runs a headless chrome, audits your URL's pagespeed performance, and sends you a nice HTML report over email. Do give it a try! 🙂 @borkdude Oh, I'd have loved something like that. Have you seen https://github.com/joewalnes/websocketd ?

borkdude20:06:22

@UENUN4L8P I didn’t, thanks!

Drew Verlee21:06:01

I wanted to throw it out there that i have been reading through "Clojure: The Essential Reference" https://www.manning.com/books/clojure-the-essential-reference by @reborg and it's a lot of fun. I wouldn't have thought a read through of the standard library could be exciting but i was wrong. It ties together a lot of the standard library and gives you a better perspective on "why" things are they way they are and how functions relate to each other. It really becomes a natural fit for someone to read after tackling an intro book. :thumbsup:

clj 4
👍 8
Drew Verlee21:06:29

like, little stuff like this: [x & forms] ""x" (which stands for the "x" in e"X"pression) can be either a simple value, sequence or function call of any type." Is super useful, i thought x was arbitrary!

Drew Verlee22:06:10

its also not clear why i haven't been macro expanding everything since day one. Its super informative, most functions are nearly as complex as i had imagined.

Alex Miller (Clojure team)02:06:38

I ... don't think that's real

Alex Miller (Clojure team)02:06:28

x is just used to to mean an arbitrary value, it doesn't stand for expression afaik

reborg07:06:17

That’s not completely made up as the doc for -> says “Threads the expr through the forms”. So, yes it’s not saying “x=expr” explictely but I thought it was a good mnemonic. However, I’ll rephrase so 1. it’s clear it’s the author’ opinion 2. it can’t be interpreted as universal.

❤️ 4
Frank Henard21:06:33

Thanks for the suggestion. Added it to my wish list

Alex Miller (Clojure team)21:06:59

x is used in many other functions where it's not referring to an expression but to an arbitrary value

Alex Miller (Clojure team)21:06:22

I think it's fine to use that as a mnemonic in that particular case though

Alex Miller (Clojure team)21:06:46

I just don't think that was the intent of the author

Alex Miller (Clojure team)21:06:10

I wish I could offer to tech review the essential reference for you, but I just don't have the time unfortunately. I'm glad you're working on it.

reborg08:06:47

Thanks @U064X3EF3 ! There are definitely rough corners and inaccuracies and I’ll keep fixing them (considering the live book is open to comments I guess I’ll keep doing this as much as needed).

anonfish19:06:03

@vemv Not Clojure. Google Cloud's APIs are barely documented even for Python. Plumbing together 8 GCP components was quite fun though. Learned a lot about enforcing resource limits in Kubernetes clusters. One of the featured examples in our app is lighthouse which runs a headless chrome, audits your URL's pagespeed performance, and sends you a nice HTML report over email. Do give it a try! 🙂 @borkdude Oh, I'd have loved something like that. Have you seen https://github.com/joewalnes/websocketd ?