-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Gitea and update Node.js #5028
Conversation
superb!
|
Thanks :) Good points. Thanks, I forgot about the PKGHOME |
Gitea just released v1.15.9 -- what about using this version from the get-go? |
Testing this locally, I noticed in the build output that
This can be set by adding
after https://github.com/publicarray/spksrc/blob/216f353cf10305185b05c91fe28b948006c8d6d8/cross/gitea/Makefile#L26. |
The version I see in the web ui is I have no idea why |
Interesting observation. I see |
When I was building a Gitea spk myself, I noticed that Gitea releases contain a source package with prebuilt frontend files which allowed me to avoid the native/nodejs dependency:
Is this a viable approach? Or is there some advantage in rebuilding the frontend files as well? |
Building it doesn't take too long (NodeJS only needs to be installed once) and it verified with the digest file. To do the same I would split the frontend to a new cross package. (gitea-web) similar how Jellyfin is done. Generally I prefer building to downloading binaries. |
Oh, you mean the Edit: there is a file size difference of 4mb on the finished build 🤔 |
Nice work, @publicarray!
|
When trying to install gitea_armv7-7.0_1.15.9-1.spk from https://nightly.link/SynoCommunity/spksrc/actions/runs/1639773942, I got the following error:
even though I have the Synology provided "Git Server" installed on my NAS. When I removed the https://packages.synocommunity.com/ package source, the missing package changed from
from spk/gitea/Makefile. |
Thanks 😃
I'm keeping it just in case. There is no downside in keeping it defined.
Build will fail since it can't find
Thanks
Generally our version ships a more up-to-date git version. But I can switch to using system Git. |
Can gitea run with synocommunity Git package The synology package does not only provide We have to choose one of the following approaches
my favorite is 1.) Remarks3.) lacks the dependency, so one can break gitea by uninstalling git, without any warning. (probably the dependency can be added to the INFO file at installation time to fix this) When we keep 2.) or use 3.) we probably get conflicts with user and repository management between gitea and git server We should drop the synocommunity |
Thanks yea I'm also for option 1. |
@publicarray If you remove the old git-server, you can remove This line was removed in 17bbc09 but is needed by |
@publicarray I propose to move the update of curl and openssl to a dedicated branch as those trigger the CI for a whole bunch of packages... |
fadd494
to
5cdad0f
Compare
Can anyone confirm that they can ssh into this with the synology ssh daemon? I'm capable of doing One thing I can see that could be a complication is the synology user is |
@Libbum I made a mistake with the .ssh directory in DSM7 it's in the wrong location ( I'm stuck on this:
|
OK, Thanks for the tip @publicarray. I'll take a look on my system tomorrow and report back if I can dig anything up. |
@publicarray I have a question - I have installed Gitea on DSM6 using this script https://github.com/flipswitchingmonkey/gitea-spk |
Hi @Wuszek because they use different ports you can run them side by side to verify everything works before uninstalling the older version. You are right that a backup and restore is the best way. This package here forces you to use a shared folder for the repositories, I don't know where they would be for the older package though. By just copying the repositories Gitea also allows you to adopt them from the admin setting page. |
another condition for side by side installation is satisfied too: the package names differ |
IM STILL ON DSM6 Actually, after instalation of community packaga, it somehow "broke" first instance. I mean, it was "working" but only showing "Error 500" site. So, the best solution is to make backup/dump of old Gitea instance, uninstall it, install new and copy backup files/ configuration files. New gitea can use old app sql database, so no need to touch that. First, to do a dump we need to setup
To make a dump, we need to use gitea user, so ssh on nas and:
Move dump somewhere safe. Install new community gitea package, setup sql access, no need to setup more. Start and stop package. Copy date folder from dump to new location, copy repos to new location (new location will be written in new conf.ini file), and then fill up conf.ini file with old settings, but remember about new paths. Start new package. It should work and behave just like old one. Cheers //// For new community app, how to add user sc-gitea and make dump?
Make a dump:
|
@publicarray, I've managed to get ssh working on my DSM7 system so we can identify what I'm doing differently to your setup.
ls -l /var/packages/gitea/home/.ssh/authorized_keys
-rw------- 1 sc-gitea synocommunity 536 Jan 9 17:36 /var/packages/gitea/home/.ssh/authorized_keys .ssh has the same user:group, with
That's essentially everything I think. |
So, if I may ask — which port should I set in initial configuration? Synology's buildin sshd? After a bit of digging around the problem seems to be that sshd looks into (nonexisting) |
@Libbum
|
* Add Gitea * Address feedback * Remove Node.js dependency * Code review and Require our Git * Remove old git-server
Motivation: Adds Gitea, not much more to say about it.
Linked issues: fixes #1522, fixes #4749, fixes #4256 and closes #2533, closes #2101
Checklist
all-supported
completed successfully