edward3h / minecraft-webhook

GNU General Public License v3.0
19 stars 2 forks source link

ARM / Java Server Support? #13

Open Kaiede opened 2 years ago

Kaiede commented 2 years ago

When I noticed that you had added support for my backup container for web hook notifications, I decided I wanted to play with it.

I figured I'd try it against my backup container with a Java server, just to see if it would at least be able to send notifications about the backups. Unfortunately, it looks like ARM isn't supported so I couldn't try it with my Java server.

So I'm a bit curious if there's any plans to support Java servers, along with ARM hosts?

edward3h commented 2 years ago

I don't personally run or play Java Minecraft so it's not something I looked at. Since we're mainly tailing logs and matching text it should be possible in theory though.

What kind of an ARM server are you running? If it can run Java Minecraft it should be able to run this, but I have not learned about building Docker for multiple architectures. Yet.

Kaiede commented 2 years ago

I don't personally run or play Java Minecraft so it's not something I looked at. Since we're mainly tailing logs and matching text it should be possible in theory though.

The strings are a little different, but it was pretty straight forward to add the tailing to the backup container.

What kind of an ARM server are you running? If it can run Java Minecraft it should be able to run this, but I have not learned about building Docker for multiple architectures. Yet.

Right now it's an M1 Mac mini, but it's running in a VM (Ubuntu 22.04 - AArch64). If the image you are based on is multi-arch already, it should be straight-forward since the same dockerfile will work for multiple architectures for the most part. I would be careful if you browse though the minecraft-bedrock-backup project as an example though. Swift unfortunately didn't have multi-arch base images, so I had to work around that which made it more complicated than it should be. A more standard base image should be multi-arch and will be easier to work with.

I don't think you should have problems related to cross-compiling either which still plagues the backup container project.