add debian/ubuntu packages #21

Merged
lunny merged 2 commits from morph027/awesome-gitea:master into master 2020-06-21 06:39:48 +00:00
Contributor
No description provided.
morph027 added 1 commit 2020-06-19 16:59:30 +00:00
6543 reviewed 2020-06-19 20:26:18 +00:00
Dismissed
6543 left a comment
Owner

the install itself works but config is not stored in /etc/gitea/ it is al stored in the home dir of the new "gitea" user

the install itself works but config is not stored in /etc/gitea/ it is al stored in the home dir of the new "gitea" user
6543 reviewed 2020-06-19 20:26:42 +00:00
Dismissed
6543 left a comment
Owner

the install itself works but config is not stored in /etc/gitea/ it is al stored in the home dir of the new "gitea" user

the install itself works but config is not stored in /etc/gitea/ it is al stored in the home dir of the new "gitea" user
Author
Contributor

Ok. Is this desired behaviour to match the upstream docs? Then i'll have a look to change it.

Ok. Is this desired behaviour to match the upstream docs? Then i'll have a look to change it.
Author
Contributor

Latest build works like this in /var/lib/gitea and /etc/gitea/app.ini:

$ docker run -d --name systemd-ubuntu --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu:20.04
$ docker exec -it systemd-ubuntu bash
root@17afa7a5d7a7:/# apt-get update
...
root@17afa7a5d7a7:/# apt-get -y install curl sudo tree
...
root@17afa7a5d7a7:/# sudo curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key
root@17afa7a5d7a7:/# echo "deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main" | sudo tee /etc/apt/sources.list.d/morph027-gitea.list
deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main
root@17afa7a5d7a7:/# apt-get update; apt-get install gitea -y
...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git git-man less libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libfido2-1 libgdbm-compat4 libgdbm6 libperl5.30 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6
  libxmuu1 netbase openssh-client patch perl perl-modules-5.30 xauth
Suggested packages:
  gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n keychain libpam-ssh monkeysphere ssh-askpass
  ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl
The following NEW packages will be installed:
  git git-man gitea less libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libfido2-1 libgdbm-compat4 libgdbm6 libperl5.30 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
  libxext6 libxmuu1 netbase openssh-client patch perl perl-modules-5.30 xauth
0 upgraded, 26 newly installed, 0 to remove and 11 not upgraded.
Need to get 72.3 MB of archives.
After this operation, 201 MB of additional disk space will be used.
...
Setting up gitea (1.12.0-p3) ...
Adding system user `gitea' (UID 105) ...
Adding new group `gitea' (GID 107) ...
Adding new user `gitea' (UID 105) with group `gitea' ...
Creating home directory `/var/lib/gitea' ...
Created symlink /etc/systemd/system/multi-user.target.wants/gitea.service -> /lib/systemd/system/gitea.service.
/usr/sbin/policy-rc.d returned 101, not running 'start gitea'
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for systemd (245.4-4ubuntu3.1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
root@17afa7a5d7a7:/# systemctl start gitea
root@17afa7a5d7a7:/# journalctl -lu gitea --no-pager
-- Logs begin at Sat 2020-06-20 08:18:39 UTC, end at Sat 2020-06-20 08:20:27 UTC. --
Jun 20 08:20:27 17afa7a5d7a7 systemd[1]: Started Gitea (Git with a cup of tea).
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 cmd/web.go:107:runWeb() [I] Starting Gitea on PID: 3633
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...s/setting/setting.go:557:NewContext() [W] Custom config '/etc/gitea/app.ini' not found, ignore this if you're running first time
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...dules/setting/git.go:93:newGit() [I] Git Version: 2.25.1, Wire Protocol Version 2 Enabled
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:119:GlobalInit() [T] AppPath: /usr/bin/gitea
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:120:GlobalInit() [T] AppWorkPath: /var/lib/gitea/
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:121:GlobalInit() [T] Custom path: /var/lib/gitea/custom
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:122:GlobalInit() [T] Log path: /var/lib/gitea/log
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:127:GlobalInit() [I] Delete all repository archives
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...dules/setting/log.go:233:newLogService() [I] Gitea v1.12.0 built with GNU Make 4.1, go1.14.4 : bindata, sqlite, sqlite_unlock_notify
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...dules/setting/log.go:279:newLogService() [I] Gitea Log Mode: Console(Console:info)
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...les/setting/cache.go:70:newCacheService() [I] Cache Service Enabled
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...les/setting/cache.go:81:newCacheService() [I] Last Commit Cache Service Enabled
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...s/setting/session.go:63:newSessionService() [I] Session Service Enabled
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:165:GlobalInit() [I] SQLite3 Supported
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:51:checkRunMode() [I] Run Mode: Development
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 cmd/web.go:161:runWeb() [I] Listen: http://0.0.0.0:3000
Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...s/graceful/server.go:55:NewServer() [I] Starting new server: tcp:0.0.0.0:3000 on PID: 3633
root@17afa7a5d7a7:/# tree /etc/gitea/
/etc/gitea/
`-- app.ini

0 directories, 1 file
root@17afa7a5d7a7:/# tree /etc/gitea/ /var/lib/gitea/
/etc/gitea/
`-- app.ini
/var/lib/gitea/
`-- data
    `-- queues
        `-- notification-service
            |-- 000001.log
            |-- CURRENT
            |-- LOCK
            |-- LOG
            `-- MANIFEST-000000

3 directories, 6 files
Latest build works like this in `/var/lib/gitea` and `/etc/gitea/app.ini`: ``` $ docker run -d --name systemd-ubuntu --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu:20.04 $ docker exec -it systemd-ubuntu bash root@17afa7a5d7a7:/# apt-get update ... root@17afa7a5d7a7:/# apt-get -y install curl sudo tree ... root@17afa7a5d7a7:/# sudo curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key root@17afa7a5d7a7:/# echo "deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main" | sudo tee /etc/apt/sources.list.d/morph027-gitea.list deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main root@17afa7a5d7a7:/# apt-get update; apt-get install gitea -y ... Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: git git-man less libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libfido2-1 libgdbm-compat4 libgdbm6 libperl5.30 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase openssh-client patch perl perl-modules-5.30 xauth Suggested packages: gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n keychain libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl The following NEW packages will be installed: git git-man gitea less libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libfido2-1 libgdbm-compat4 libgdbm6 libperl5.30 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase openssh-client patch perl perl-modules-5.30 xauth 0 upgraded, 26 newly installed, 0 to remove and 11 not upgraded. Need to get 72.3 MB of archives. After this operation, 201 MB of additional disk space will be used. ... Setting up gitea (1.12.0-p3) ... Adding system user `gitea' (UID 105) ... Adding new group `gitea' (GID 107) ... Adding new user `gitea' (UID 105) with group `gitea' ... Creating home directory `/var/lib/gitea' ... Created symlink /etc/systemd/system/multi-user.target.wants/gitea.service -> /lib/systemd/system/gitea.service. /usr/sbin/policy-rc.d returned 101, not running 'start gitea' Processing triggers for libc-bin (2.31-0ubuntu9) ... Processing triggers for systemd (245.4-4ubuntu3.1) ... Processing triggers for mime-support (3.64ubuntu1) ... root@17afa7a5d7a7:/# systemctl start gitea root@17afa7a5d7a7:/# journalctl -lu gitea --no-pager -- Logs begin at Sat 2020-06-20 08:18:39 UTC, end at Sat 2020-06-20 08:20:27 UTC. -- Jun 20 08:20:27 17afa7a5d7a7 systemd[1]: Started Gitea (Git with a cup of tea). Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 cmd/web.go:107:runWeb() [I] Starting Gitea on PID: 3633 Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...s/setting/setting.go:557:NewContext() [W] Custom config '/etc/gitea/app.ini' not found, ignore this if you're running first time Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...dules/setting/git.go:93:newGit() [I] Git Version: 2.25.1, Wire Protocol Version 2 Enabled Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:119:GlobalInit() [T] AppPath: /usr/bin/gitea Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:120:GlobalInit() [T] AppWorkPath: /var/lib/gitea/ Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:121:GlobalInit() [T] Custom path: /var/lib/gitea/custom Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:122:GlobalInit() [T] Log path: /var/lib/gitea/log Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:127:GlobalInit() [I] Delete all repository archives Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...dules/setting/log.go:233:newLogService() [I] Gitea v1.12.0 built with GNU Make 4.1, go1.14.4 : bindata, sqlite, sqlite_unlock_notify Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...dules/setting/log.go:279:newLogService() [I] Gitea Log Mode: Console(Console:info) Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...les/setting/cache.go:70:newCacheService() [I] Cache Service Enabled Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...les/setting/cache.go:81:newCacheService() [I] Last Commit Cache Service Enabled Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...s/setting/session.go:63:newSessionService() [I] Session Service Enabled Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:165:GlobalInit() [I] SQLite3 Supported Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 routers/init.go:51:checkRunMode() [I] Run Mode: Development Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 cmd/web.go:161:runWeb() [I] Listen: http://0.0.0.0:3000 Jun 20 08:20:27 17afa7a5d7a7 gitea[3633]: 2020/06/20 08:20:27 ...s/graceful/server.go:55:NewServer() [I] Starting new server: tcp:0.0.0.0:3000 on PID: 3633 root@17afa7a5d7a7:/# tree /etc/gitea/ /etc/gitea/ `-- app.ini 0 directories, 1 file root@17afa7a5d7a7:/# tree /etc/gitea/ /var/lib/gitea/ /etc/gitea/ `-- app.ini /var/lib/gitea/ `-- data `-- queues `-- notification-service |-- 000001.log |-- CURRENT |-- LOCK |-- LOG `-- MANIFEST-000000 3 directories, 6 files ```
6543 approved these changes 2020-06-20 15:25:38 +00:00
Dismissed
Owner

Please move the line to the suitable position, we have an alphabetical order.

Please move the line to the suitable position, we have an alphabetical order.
morph027 added 1 commit 2020-06-21 06:12:25 +00:00
lunny approved these changes 2020-06-21 06:39:41 +00:00
Dismissed
lunny merged commit 93ab40431b into master 2020-06-21 06:39:48 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/awesome-gitea#21
No description provided.