-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide ARM Docker Image #531
Comments
It should be: |
There is https://github.com/go-gitea/gitea/blob/master/Dockerfile.rpi already but it looks like it differs a little from the normal Dockerfile. The last time it was updated (#386) the rpi-Dockerfile wasn't also updated |
You are right, it got smaller differences. Currently we don't have a arm pipeline running, but hopefully we can provide that soon |
Somebody wants to create a pr to bring the files back in sync? |
This issue should be closed by #548 |
No, it's not solved because we don't publish this image yet. |
@tboerger Understood. |
In the same continuity not all NAS support docker. Some big brand like Synology offers a .spk deployment mechanism and there's no doubt that a tools like Gitea can be find on such platform a very fast pace of adoption. |
is there any docker image for rpi yet? |
@klud1 only the Dockerfile, no prebuilt image so far |
@tboerger cloned the repo yesterday, tried to build it. then i realized i needed a gitea binary that is copied into the image (got an error saying any idea how can this be successfully achieved? |
@klud1 Same problem here using a Raspberry Pi 3. I cloned the repo, then |
@chadweimer i recently got it working, just changed some things in the dockerfile, built it and tested it and it all seems to work fine, here is the Dockerfile in case you want to see it. |
@klud1 That's great! I suspected it was something in the image since I was able to build and run outside docker. I tried a few things but wasn't able to figure it out. Any chance you can post your changes here? I'm not able to access that file on your GitLab repo, even after signing in. |
@chadweimer oh, gosh! you're right, i can't access it when singing out either, it shows a 404 error, even though it's set as a public project. So sorry. Here is the Dockerfile:
You also need the docker folder in the gitea repo in order to get it working. |
Please note that you will want to update the release that you're using from the correct release at the following url. https://github.com/go-gitea/gitea/releases after which you can do a rebuild and restart th container with a command like the following. docker run -d --restart=always --name=gitea-arm_1.3.2a -p 1022:22 -p 3000:3000 -v /opt/gitea:/data 9f93a41afd45 I usually do a remove of the old image after starting the new one, no issues with the upgrade path. |
So are you planning to automatically publish an arm64 image? if so, you might be interested in the arm64v8 repo which offers arm64 compatible docker images of the most popular images (node, rust, busybox...). Maybe adding a gitea here could be an interesting compromise as described here? |
we do but first we need move to using builtin ssh server in official docker image. |
@lafriks yes, maybe we could do that on docker:latest but docker:1 keep OpenSSH currently. |
@lunny yes we can do that only after we have |
Currently we can only build amd64 because we need to install system packages and we only got an amd64 ci worker. If we get rid of the system packages like OpenSSH and git we can cross compile the binary and push the other architecture images, as long as we install system packages we need native agents. |
@manisto yes I am running the gitea/gitea image from DockerHub on ODROID N2 with Archlinux ARM / arm64 as kubernetes pod. Works great so I don’t expect any trouble when running on Raspberry pi neither. (If you are using raspian I assume this is usually a 32bit flavor but docker should resolve that properly.) |
@manisto is your rpi os 64bit? |
@manisto If you're running on 32-bit, then you can use |
The When using that image I'm not able to get to the install page and any environment variables I specify in the docker compose file seem to be ignored. |
This image disables the installer on purpose, all settings can be set by env variables. The first registered user will be the initial admin. I'm currently thinking about creating an initial admin user from env variables, then I'm able to use this container for automated integration tests for drone. |
@tboerger Please provide a armv7 as well! I'm running a Banana Pi.. I would love to host it on there.. But I can't ;( Is it very hard to compile for arm7 as well during your CI/CD pipeline? And provide the docker image.
|
No, because that would require another worker for the ci system. But you can run the arm6 image on arm7 |
@Danger89 if you want I have images for armv6, armv7 and arm64. I am using it on pi 2, pi3 and pi4. |
@carlonluca Thanks, but for some reason those dockers aren't working on my banana pi. It says its up. But often it won't load my app.ini correctly or doesn't use the same environment variables. Or whatever is wrong. I just want to use the official docker images, on my pi. |
@Danger89 use the latest-official tag. That comes straight from the official Dockerfile. |
Just :latest right? Which is the default tag. Yes, I tried that.. It isn't working. Or you mean another latest tag? |
@Danger89 have you tried webhippie/gitea? |
Tonight I will try this latest official tag. I will keep you posted. Thanks |
Well I think I'm facing some (not issue related) migration issues. Where the database is from version gitea version This is something Gitea doesn't like :) on
|
@carlonluca I think I wait a bit longer when the stable release v1.13 is out. Once you then update the latest-official tag again, I think I'm able to easily migrate from my x86 setup to my BananaPi. |
1.13rc1 is out. |
I built the new image but it is not working for me on arm64, sorry. Latest-official remains the latest stable. I'll build the following stable versions. |
Over 1 week or so, I expect to see v1.13 stable release to be rolled out. I also would not advice to change the |
I uploaded 1.13.0: https://hub.docker.com/repository/docker/carlonluca/gitea. |
Nice thx for the update! |
This comment has been minimized.
This comment has been minimized.
Well, the last message from @tboerger was:
😖 ahaha... What about GitHub Actions!? |
Locking. This is a general statement, but on issues in this project please don't comment with "any news on this?", we are all volunteers and will post to threads if there are updates. Over 400+ people get an email on any comment on issues to our repo, please don't overload their inbox with comments that don't add to the ticket. Once we get another ARM CI agent we can get this up and running, but until that time this will remain open. |
Now that our pipelines use buildkit for building docker images this could be added (one such place would be: https://github.com/go-gitea/gitea/blob/main/.github/workflows/release-nightly.yml#L94) |
It would be great if you could provide an already built docker image on Docker Hub for ARM platforms such as the Raspberry Pi (>= 2). From what I have seen the pipeline seems to be already set up, and the Dockerfile seems to exist.
Thanks!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: