Fork me on GitHub
#babashka
<
2023-03-14
>
borkdude17:03:08

Who here is using the babashka docker images on dockerhub? Due to circumstances we can't use dockerhub for organizations in the near future. We're considering two options: 1. Remove support for them altogether. just build your own image and download the appropriate binary in a RUN step 2. Move to ghcr registry (Github packages). If you have any thoughts on this, please reply in 🧵

1️⃣ 4
2️⃣ 10
lukasz17:03:15

Does GHCR allow for anonymous access? I thought it always requires authentication

borkdude17:03:10

I'm reading https://docs.github.com/en/packages/learn-github-packages/configuring-a-packages-access-control-and-visibility: > Public packages allow anonymous access and can be pulled without authentication or signing in via the CLI

lispyclouds17:03:32

yeah public access works

lukasz17:03:33

Oh sorry, I confused it with their Maven hosting which doesn't allow un-authed access

aisamu17:03:59

Since babashka is on nixpkgs, there’s always https://nixery.dev (at least for dev purposes)

lispyclouds21:03:59

or maybe @U06FS3DLH could consider having a bb flavour in https://hub.docker.com/_/clojure 😄

cap10morgan21:03:20

was just waiting to see if there were a compelling need for it. maybe this is it?

cap10morgan21:03:14

@U04V15CAJ care to elaborate on the circumstances (either here or in DM)?

lispyclouds21:03:16

@U04V15CAJ how does clojure:babashka1.2.174 look to you?

borkdude21:03:45

@U06FS3DLH I'm on docker organizations (babashka and clj-kondo) and I'm not going to pay 9 dollars for each member in those organizations

cap10morgan21:03:00

I would propose clojure:bb-1.2.174 but close enough

2
cap10morgan21:03:07

ah, gotcha. yeah, gross

borkdude21:03:39

there's also -alpine etc images

borkdude21:03:46

and aarch64 vs arm64

cap10morgan21:03:55

@U04V15CAJ If you wanted to, I bet we could make you a co-maintainer of the bb variants in the official image.

cap10morgan21:03:03

or we could take it on, that'd be fine w/ me too

lispyclouds21:03:28

the clojure ones are multi arch too, @U06FS3DLH the one who did the work in bb 🙂

cap10morgan21:03:51

yep, we're good to go for all that

lispyclouds21:03:10

i can volunteer for maintenance of that too if you like @U04V15CAJ but it comes down to if we are combining clojure/jvm and bb here

borkdude21:03:34

I'd be fine with that

lispyclouds21:03:22

@U06FS3DLH I can add in the context for the need on the issue if you want

cap10morgan21:03:02

@rahul080327 yeah, thanks! Can you tag the repo owner to be sure he gets a ping?

2
borkdude21:03:23

will the images be kept up to date with new bb versions?

cap10morgan21:03:33

He's in here somewhere too. 🙂 @U054P6SA8 any thoughts on ^^^?

cap10morgan21:03:07

@U04V15CAJ yeah, I do that manually when new releases are made currently. but we could throw some GitHub Actions at it to automate too.

borkdude21:03:43

I'd prefer if that was automated

lispyclouds21:03:45

i can pair on that too, good reverse contrib from me i think 😛

borkdude21:03:54

but it's one thing less to care about in the bb org I guess

👍 2
cap10morgan21:03:20

full automation is closer than ever w/ the bb tasks it runs on now! 🚀

🎉 2
quantisan01:03:59

If you all think this makes sense in terms of tooling, then go ahead please. Plus, I read that we're getting more maintainers for docker-clojure! 🎉 Thank you! IMHO, As a product, I can see it make sense. docker-clojure provides images for entry points to Clojure. Many users use bb to use Clojure to replace bash. In that sense, it doesn't seem too far of a stretch to provide bb variant in docker-clojure. Technically, I just had a look at babashka/Dockerfile and related files in script/, installation seems involved. So it's a non-trivial addition to the docker-clojure codebase. Stating the obvious, we need to keep each variant's footprint clean and minimal, and the codebase easy to maintain. As noted in this thread already, integrating bb might be a good reason to make some progress on those goals for docker-clojure that'll benefit everyone.

👍 2
littleli08:03:47

@U04V15CAJ What are limits on ghcr? Isn't there some limit on storage size or so?

lispyclouds08:03:31

@UBLU3FQRZ its the same doubts i had but i dont see any limits being mentioned anywhere for open repos. all seem to be for private repos

borkdude09:03:04

I applied here now https://www.docker.com/community/open-source/application/ for both bb and clj-kondo, we'll see

littleli09:03:56

Good idea. I hope your application will be accepted.

borkdude09:03:30

If I won't have an answer within a week, we'll go forward with what people think is best here

Daniel Gerson10:03:25

Luckily chose nbb on a node image, issue bypassed. 😅

borkdude10:03:52

Similarly it's very easy to start off with a ubuntu or alpine image, install curl and just download the binary 🤷

borkdude12:03:34

After reading this I would say, screw docker and let's move to ghcr, regardless if they will grant the OSS excemption. https://blog.alexellis.io/docker-is-deleting-open-source-images/

borkdude12:03:03

We can leave those dockerhub things running as long as they support it but meanwhile people can migrate to ghcr

👍 2
lispyclouds12:03:55

im on the same page too, but would you wanna give the bb+clojure image route a shot as well?

borkdude12:03:19

is it feasible to do this within the next 3 weeks?

borkdude12:03:36

turning the switch to ghcr seems like a smaller thing to do right?

lispyclouds12:03:52

not sure of it, yeah can get the ghcr going and then do that in later

dharrigan12:03:42

I think Docker is really shooting themselves in the foot...

lispyclouds12:03:09

well they have been doing that for a while now

☝️ 2
Michael W15:03:35

As a side note to this issue I have moved all my docker installs to podman as a result of this. The fact that docker won't let you easily change the default artifact repo was the last straw for me. Podman is pretty awesome and offers many more features, and is fully open source. There is even a podman-desktop cask in homebrew that has replaced docker desktop for me.

💯 4
❤️ 2
lispyclouds15:03:58

wrote https://github.com/lispyclouds/contajners just from the same love too. just waiting for buildx like multiarch support without all the buildah dance and im ditching docker fully too.