Comments (22)
Don't feel bad, I appreciate suggestions for improvements. It really hasn't been that much trouble, I just haven't been able to put much time into getting this figured out.
from papermc-docker.
I'm not entirely sure how to do this (not very experienced with automatic building/making), but I am totally willing to set it up. As with the update to support Paper's APIv2, this may need to wait until finals are over for the semester (a week or so from now). Any information you could provide in the meantime as to how you've built the image and/or how I should build the image is much appreciated.
from papermc-docker.
This should be as simple as changing the base image, which is what I did (in the new branch/tag).
from papermc-docker.
Haha sike it doesn't work, there's issues at the first RUN
line. I'll have to fix this.
from papermc-docker.
Hey, I’m sorry I haven’t helped out more. I’ve been super busy and work has been scheduling where I don’t have Internet.
I might be able to help some this upcoming week. When I completed it last time I followed a guide on docker buildx and ARM. Hopefully I’ll be able to figure out an easy way of doing it again (I forgot how, oops) so I can help out some.
Again I really appreciate you even entertaining the idea of getting it to easily work on arm too.
from papermc-docker.
I've tried everything I can think of: separating lines, using semicolons, and changing the line endings to Linux. It still errors out on the RUN
block. Unless Visual Studio and/or GitHub is just changing stuff (line endings) after I fix it, I have no idea what could possibly be causing this. The base image uses apt-get
, so it's definitely available as a command. Same with rm
and presumably mkdir
. The commands are definitely written correctly, because they work just fine in the master branch. This doesn't make any sense.
from papermc-docker.
Hey I’m sorry, life’s hit hard recently and have had some computer trouble. If you’d like you can close this issue and I’ll play around till I can find a way to automate it/ easy walkthrough. Thanks for giving it time and putting a lot of work into it.
from papermc-docker.
Hey you're fine, no worries, I wasn't expecting you to fix this for me. No reason to close the issue, it'll just sit until it's solved.
from papermc-docker.
I'm running this on a Raspberry Pi 4 with Ubuntu 64 bit. I simply cloned the repo, ran docker build .
and started the container. This works fine for me.
from papermc-docker.
Weird. I've been going off of Docker Hub's auto-building, so there must be an bug in that. It seems like there may be a way to tell Docker Hub to build it properly by adding/editing files in this repo. I'll look into it.
from papermc-docker.
I think we need something like what they talk about here: docker/hub-feedback#1261
from papermc-docker.
By the way, if cloning from GitHub, building, and then running works, then this issue has been solved. I am going to leave this open, though, to solve the new issue of getting Docker Hub to build the image, as many users would likely prefer to only use Docker Hub.
from papermc-docker.
I’m not familiar with docker hub auto building. And I could clone the source and build it on my raspberry pi (I don’t know why I didn’t consider this). I was originally asking to build it slightly differently in docker so others using raspberry pis can just download it from Docker Hub and run it.
The way I had achieved this on an x86 platform was by downloading the source code and using test version of docker and use docker buildx to create both x86 and arm64 at the same time. I was pretty confused and didn’t fully understand how I reached a working version but I just followed a guide on docker buildx. Hopefully there’s an easy way to use docker hubs auto-build feature like you mentioned.
I was planning on being able to help out and walkthrough the process however I wasn’t able to become familiar with it before needing to return a laptop and get a different one due to some issues I was having so now I’m in between computers and in the middle of a move.
I feel bad asking for the comparability now that I’m not able to help as much but I’ll be getting a new computer soon. I really appreciate the effort you’ve gone through and done for this @Phyremaster
from papermc-docker.
I was able to get it to work through an action on GitHub.
Original post
I then edited it slightly to get it to work on my forked version of your papermc-docker. Here is mine. And here is my docker hub tags to show it's working.
If you modify the on:
section using Events that trigger workflows then you should be able to get it to run when you want it to.
I'm still very new to GitHub and docker but let me know if I can help at all! (Or explain anything better)
I want to remind you I don't expect you to go out of your way to get it working on arm. I made a program to pull and build it on an arm machine then push it to docker hub like what was suggested above, But I'd still love an easy way to keep it automatically up to date with your version.
from papermc-docker.
I'll be honest, I don't entirely know how GitHub actions work. Would this build the image and push it to Docker Hub every time the branch gets a new commit? Would it run on GitHub's infrastructure? Do they eventually start charging for that? I intend to do some work on my own infrastructure this summer, so I may eventually be able to host the automation stuff myself if necessary. If I can just drop this in and have GitHub do the work, though, that's great and I'll do it.
from papermc-docker.
Wait, there can be images for multiple architectures under the same tag? I had no idea! Wow, that makes this way simpler...
from papermc-docker.
Oh, it looks like this can just be merged in (as long as I get the secrets set up on this repository first). Nice! And the other tags (older JDKs) should only need small tweaks. Go ahead and create a PR, I'll merge it tonight if I can.
from papermc-docker.
Does it work without the package-version
step? I think that's for NPM, which shouldn't be required because Node.js isn't involved here.
from papermc-docker.
It looks like GitHub gives free users 2,000 action minutes per month which should be more than plenty as I think this doesn't take more than one per run. Checking my account after running it a few times it still shows 0 minutes but for private repositories (So maybe is completely free or just free because it's easy for the server?). It can't charge you unless you add a payment method though. Originally I was running docker buildx and was going to try and make a program to build multi arch images with it, but I think this way is better/easier.
How I have the action setup now it only runs if you manually tell it to under the action tab. However there are ways to setup to make it automatic based on triggers in GitHub and is listed on this page. I'm not too familiar with how GitHub functions or terminology otherwise I'd help set it up better.
Currently it'll build for both arm64 and amd64 with the tag of latest.
I'll submit a Pull Request, I have it set so it just shows the one file being changed but I had touched a few things in attempts to make the actions work until I figured it out. I reverted all of them so just the one is added/changed. If you have any questions let me know.
from papermc-docker.
Alright, Docker Hub shows both architectures for all tags now.
from papermc-docker.
No problem, I had a working version of an arm build but I’m really excited it’ll be automatically built now! Thanks so much for working on this with means being so open to it!
from papermc-docker.
No problem. After all, you did most of the issue-solving.
from papermc-docker.
Related Issues (20)
- jdk8 - papermc 1.8.8 HOT 2
- Out of memory error HOT 34
- Add License HOT 1
- Add PUID and PGID env option for Portainer compatibility HOT 18
- Upgrade to Java 16 for Minecraft version 1.17+ HOT 4
- cgroups error when deploying in a kubernetes environment HOT 1
- Add support for no RAM limit
- Prevent auto-update from corrupting the world
- Restarting server HOT 1
- Can this run on ARMv7 32bit architecture? HOT 3
- Make "latest" option not case sensitive HOT 11
- IP-Address HOT 3
- Script not working... HOT 1
- Bug in exposed ports HOT 3
- Enhancement: Control EULA with environment variable
- Unable to run Docker container with 1.17 Minecraft HOT 1
- Solved: [Patch & Image] for 1.18 until a pull request comes through. HOT 14
- Java 17 not recognized
- Security vulnerabilities in openjdk:17-slim
- Please bump java version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papermc-docker.