introduce-yourself

2025-05-20T19:41:21.753519Z

Hey everyone! I'm pretty new to Clojure, Clojure/jvm ecosystem and also functional programming. Been reading Clojure for the brave and true and also did some Advent of Code last year. I was really fun and perhaps a bit annoying to get stuck on tasks that would have been a lot easier for me in another language. Perhaps it's lack of Clojure expertise, but I think it was also due to the functional shift. Now I'm trying out writing a command line utility in Clojure figuring out how to compile to a binary :-) And so far really enjoying the language! I have a question, what would you say would be the most common way of deploying web facing services is in the Clojure community? Do people mostly use containerized solutions? And if someone has any tips for good Clojure dev-ops resources πŸ™‚

πŸ‘‹ 9
πŸ‘‹πŸ» 1
πŸ‘‹πŸΌ 1
pez 2025-05-20T20:25:53.050789Z

Strong recognitions from your path, breaking open the functional programming box here. I saw someone asking a similar question about Clojure devops on /r/Clojure. Could be worth checking the answers there.

πŸ™Œ 1
raspasov 2025-05-20T21:08:30.496669Z

You can use a container. For most common use cases, a container that has JVM/java installed should be enough.

raspasov 2025-05-20T21:16:24.698249Z

FROM azul/zulu-openjdk:24.0.1-jre-headless
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY target/my-app.jar /usr/src/app/
CMD ["java","-jar", "my-app.jar"]
# HTTP Server
EXPOSE 8082

2025-05-21T10:56:38.241569Z

@raspasov Nice! Thanks, I think that image was more slimmed/smaller than the one I found as well πŸ™‚

1
raspasov 2025-05-22T05:00:25.529509Z

You’re welcome. This assumes your Clojure project has been compiled to the so-called uberjar (which I believe is a common way to do it, that’s what I’ve always done)