Coder Social home page Coder Social logo

flipswitchingmonkey / gitea-spk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexandregz/gogs-spk

105.0 105.0 24.0 1.41 MB

spk (Synology package) to install gitea into Synology NAS

License: MIT License

SuperCollider 0.96% Shell 99.04%

gitea-spk's Introduction

Yes, it's me. Hi.

Skills (Primary)

TypeScript NodeJS NestJS PostgreSQL JavaScript Python HTML5 React NextJs Vue CSS3 TailwindCSS

Skills (Secondary)

C# Dart Go Java Svelte .NET Flutter

Socials

flipswitchingmonkey's GitHub stats

gitea-spk's People

Contributors

alexandregz avatar andxet avatar ceshm avatar computergeek125 avatar doompadee avatar flipswitchingmonkey avatar hirakujira avatar kasurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitea-spk's Issues

How to update Gitea version on Synology

Hey and thanks for the great work with the synology package.
I'm running Gitea 1.6.1 on my Synology Diskstation and I would like to upgrade to the latest release of Gitea. How can I do that without risking any data loss on the Diskstation?
Do I just have to stop the running instance of Gitea and install a "new" package manually?

Thanks and best regards,
@aljole

DSM 7beta

Does it still works with the new DSM 7 beta ?

Update for amd64 architectures

I have a DS416play (braswell) and I was required to update the arch.desc, while at it I reviewed the amd64 supported architectures and added to it accordingly. Here is a gist https://gist.github.com/JeremyVV/4d8b62d68293e20ae0428cf6b0490ebd

# Maps Gitea platforms to Synology arch values, see
# https://developer.synology.com/developer-guide/appendix/index.html
# https://github.com/SynologyOpenSource/pkgscripts-ng/blob/master/include/platforms
386 x86
amd64 cedarview bromolow denverton apollolake avoton braswell grantley broadwell dockerx64 kvmx64 x64 
arm-5 88f6281 88f6282
arm-7 armada370 armada375 armada38x armadaxp alpine/alpine4k comcerto2k monaco
arm64 rtd1296

Add information on how to activate git ssh connection

I used your script some days ago and set up gitea 1.2.0rc2.

I had to manually edit the config file because the automatic path for the .ssh user folder was wrong.
It pointed to "/usr/local/gitea/gitea/.ssh" (the package folder) instead of "/usr/local/gitea/.ssh" (the user folder).

sudo vi /usr/local/gitea/gitea/custom/conf/app.ini
insert at the bottom of the [server] section
SSH_ROOT_PATH=/usr/local/gitea/.ssh

And i also had to edit the "/etc/passwd" file to allow login for the gitea user.

sudo vi /etc/passwd
old: gitea: ... :/var/packages/Gitea/target:/sbin/nologin
new: gitea: ... :/var/packages/Gitea/target:/bin/sh

But some security function or whatever seems to overwrite the passwd file from time to time so i need to do this change again. I'm trying to figure out why this happens.

Maybe you can include these two steps in the description.

UPDATE GITEA VERION

current version is 1.10.3

pleace update README since people tend to copy-paste things

SSH is unavailable after starting the ssh server

Hello
I installed a gitea 1.8.0-rc1 on my DS918+, everything seems to run smoothly but I'm unable to use SSH to interact with it.
After following the steps from your wiki the SSH option on repositories is simply gone, I assume because of the DISABLE_SSH = true line which looks to me like it just disables SSH globally.
If I set this to false, the package then fails to start with the following error

[...a/modules/ssh/ssh.go:124 listen()] [E] Failed to start SSH server: listen tcp :909: bind: permission denied

Any idea how to solve this ?
Thank you :)

Wrong project description

The project description says "spk (Synology package) to install gogs into Synology NAS".

This should be changed.

Gitea dies on a DS718+

Hi,

i succesfully installed gitea on a DS718+

It is working fine but after some time gitea dies and i have to restart it manually from the package manager.

Any ideas how to fix this ?

Perhaos it helps but the URL shown in the package manager is not the URL gitea is running on

THX and best wishes

Niels

What is the password for user gitea?

I would like to access the files of my gitea installation. But to do so, the password for user "gitea" (created by this package) is required.

Where do I find this password?

Provide more complete build script with download function

The current build script is a bit lacking in that you have to download the matching gitea binary manually. This should be part of the script.

When running on a DiskStation, the necessary binary can be determined automatically. On other platforms you have to provide the desired package arch or Gitea platform for the download via parameters.

With this feature it's possible to setup a local package server that can be used for fully automated updates or update notification.

If you can agree, I will send a PR. I've redone the script in Python as shell scripting is too awkward.

Install on RS217 fails

Used Computer: Windows 10 machine
User Synology: RS217

Steps to reproduce:

$ git clone https://github.com/flipswitchingmonkey/gitea-spk.git
$ cd gitea-spk
download https://github.com/go-gitea/gitea/releases/download/v1.2.1/gitea-1.2.1-linux-arm-7
$ ./create_spk.sh
Install Git-Server
Enable SSH
Start Git-Server
Go to Manual Installation
Choose: gitea-1.2.1-linux-arm-7.spk
After pressing next, it shows an error message that the paket is not compatible with the DSM-Version.

Any thoughts?

Installation fails on DS414 (DSM 6.2.2-24922 Update 2)

Thank you for putting this together with a great guide! I'm unable to install on my DS414 (amardaxp ARM7). I've packaged up various versions of gitea and tried to manually install. It always looks like all is going well, I get the "Installing" progress prompt for a minute or two, but then I always get the message 'Failed to install "Gitea".'

image

I have pulled the logs from my DS414 (/var/log/packages/gitea.log and /var/log/synopkg.log) and the only lines shown are:

2019/07/28 22:35:57 install Gitea 1.8.3 Begin preinst
2019/07/28 22:35:57 install Gitea 1.8.3 End preinst ret=[1]
2019/07/28 22:35:57 install Gitea 1.8.3 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2019/07/28 22:35:57 install Gitea 1.8.3 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2019/07/28 22:35:57 install Gitea 1.8.3 failed

Any help would be very much appreciated.

Upgrading gitea version on DS218

Hi,
got a problem upgrading to a newer wersion. I originally installed gitea-1.11.4-linux-arm64 creating .spk with Your tool and everything is working fine. Now, I downloaded gitea-1.11.5-linux-arm64 from gitea github and created new .spk. I created buckup using ./gitea backup, stopped Gitea packet in packet center and tried manual upgrade. Everytime it says "Failed to upgrade package".

Here some logs:

/var/log/packages/gitea.log

Stopping Gitea ...
2020/05/20 13:34:20 stop Gitea 1.11.4 End start-stop-status stop ret=[0]
2020/05/20 13:35:25 upgrade Gitea 1.11.4 Begin preupgrade
2020/05/20 13:35:25 upgrade Gitea 1.11.4 End preupgrade ret=[1]
2020/05/20 13:35:25 upgrade Gitea 1.11.5 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/20 13:35:25 upgrade Gitea 1.11.5 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/20 13:35:42 start Gitea 1.11.4 Begin start-stop-status start
Starting Gitea ...

/var/log/synopkg.log

2020/05/20 13:34:17 stop Gitea: begin to stop version 1.11.4
2020/05/20 13:34:18 stop Gitea 1.11.4 Begin start-stop-status stop
2020/05/20 13:34:20 stop Gitea 1.11.4 End start-stop-status stop ret=[0]
2020/05/20 13:34:20 stop Gitea 1.11.4 Begin unload apparmor
2020/05/20 13:34:20 stop Gitea 1.11.4 End unload apparmor ret=[0]
2020/05/20 13:34:20 stop Gitea: stop version 1.11.4 successfully, result 0
2020/05/20 13:35:25 upgrade Gitea 1.11.4 Begin preupgrade
2020/05/20 13:35:25 upgrade Gitea 1.11.4 End preupgrade ret=[1]
2020/05/20 13:35:25 upgrade Gitea from 1.11.4 to 1.11.5 failed
2020/05/20 13:35:25 upgrade Gitea 1.11.5 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/20 13:35:25 upgrade Gitea 1.11.5 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/20 13:35:41 start Gitea: begin to start version 1.11.4
2020/05/20 13:35:42 start Gitea 1.11.4 Begin pre-load apparmor
2020/05/20 13:35:42 start Gitea 1.11.4 End pre-load apparmor ret=[0]
2020/05/20 13:35:42 start Gitea 1.11.4 Begin start-stop-status start
2020/05/20 13:35:42 start Gitea 1.11.4 End start-stop-status start ret=[0]
2020/05/20 13:35:44 start Gitea: start version 1.11.4 successfully, result 0

Any idea what is causing the problem?

Running on DS216 Play

Does anyone tried to run this on 216 Play? I tried with the ARMv7 binary but SDM says that it isn't compatible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.