Could we add officially supported Arm containers?

Oracle has a pretty generous always free service with Arm; 4 Arm vcpu, 24Gb RAM: https://www.oracle.com/cloud/free/#always-free

AWS has a pretty good free trial to the end of the year: https://aws.amazon.com/ec2/instance-types/t4/

I think it’s generally true that Arm is more efficient and better for the environment.

There are 3rd party Arm images available and I’m running instances with these on AWS and Oracle, but they are not updated as frequently as the official images: https://hub.docker.com/r/masquernya/lemmy/tags

I know if I’m asking I should be ready to help, and I am. But this isn’t something I know how to do.

3 points

Hey, check out mine.

I update them very frequently.

https://hub.docker.com/u/nettohikarijp

permalink
report
reply
2 points

I’ve been using yours the past couple weeks. Found them on a desperate search on docker hub for arm images. Appreciate it

permalink
report
parent
reply
2 points

You’re welcome. :3

permalink
report
parent
reply
1 point

Much appreciated! Looking for this morning’s release with the vulnerability fix.

As you’re doing it anyway, if whoever is in charge of these things were agreeable to it, would you be willing to do the official Arm images under https://hub.docker.com/r/dessalines/lemmy? One key advantage is the official ansible deployment method would work without modification for Arm deployments.

permalink
report
parent
reply
1 point
*

Looking for this morning’s release with the vulnerability fix.

You’re welcome! Today, the only commit that’s been made to lemmy is this one. I suppose you’re talking about yesterday’s security vulnerability fixes in lemmy-ui here and here?

If so, please pull 0.18.2-rc.1-linux-arm64 from my lemmy-ui repo on Docker Hub. latest-linux-arm64 works as well, as I periodically recompile it when interesting pull requests have been merged, so that one’s “bleeding edge” most of the time.

About Dessalines’ Docker repo: I don’t have access to that, unfortunately. But I’m pretty sure that Lemmy devs will soon provide offical ARM64 images again, after this is resolved.

Edit: Forget what I said, building new images now!

permalink
report
parent
reply
0 points
*

hmm weird. This bot is announcing an 18.2 release (and I think people are installing it.) https://matrix.to/#/#lemmy-support-releases:discuss.online

But the repo is still showing 18.1 as the latest.

permalink
report
parent
reply
2 points

I really do trust both of these projects and the community mindedness of their owners. Does someone know how you’d go about verifying a 3rd party image hasn’t diverged from the official project image?

permalink
report
reply
0 points

You read the Dockerfile https://hub.docker.com/layers/masquernya/lemmy/0.18.2-linux-arm64/images/sha256-f1501bab2574cf371673d0926fdecd5b61e00d77e637ebc4f43a31ecbc029270?context=explore

To me the first line is pretty opaque

ADD file:1368964550b1f674dd0365f72bb1d55cfebf5e3c651d49b5e168f9be97a6df76 in / 

Maybe that hash lines up with a version of Lemmy, otherwise it’s just a hash of a mystery block of files that could contain anything.

permalink
report
parent
reply
0 points

Here’s an example dockerfile I wrote (for a different project) that’s a little more transparent

FROM alpine:3.18.2
WORKDIR /root
RUN apk update && apk upgrade && apk add --no-cache git nodejs-current yarn
RUN git clone https://github.com/hydra-synth/hydra.git
WORKDIR /root/hydra
RUN yarn install
EXPOSE 8000
CMD ["yarn", "build"]
CMD ["yarn", "serve"]
permalink
report
parent
reply
2 points
1 point

If you want up to date docker arm64 images ubergeek77 has a great project setup for that ^^ https://github.com/ubergeek77/lemmy-docker-multiarch

permalink
report
reply

Lemmy Support

!lemmy_support@lemmy.ml

Create post

Support / questions about Lemmy.

Matrix Space: #lemmy-space

Community stats

  • 155

    Monthly active users

  • 815

    Posts

  • 3.9K

    Comments

Community moderators