Add gitea
This commit is contained in:
parent
beb7aa882f
commit
ca1f99908e
11 changed files with 115 additions and 12 deletions
0
ressources/gitea/rootfs/DEBIAN/changelog
Normal file
0
ressources/gitea/rootfs/DEBIAN/changelog
Normal file
1
ressources/gitea/rootfs/DEBIAN/conffiles
Normal file
1
ressources/gitea/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/gitea/app.ini
|
7
ressources/gitea/rootfs/DEBIAN/control
Normal file
7
ressources/gitea/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: gitea
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: gitea
|
5
ressources/gitea/rootfs/DEBIAN/postinst
Executable file
5
ressources/gitea/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
id gitea &> /dev/null || useradd gitea -r -s /bin/false -d /var/lib/gitea/
|
||||
|
||||
chown -R gitea:gitea /var/lib/gitea/
|
0
ressources/gitea/rootfs/etc/gitea/.gitkeep
Normal file
0
ressources/gitea/rootfs/etc/gitea/.gitkeep
Normal file
37
ressources/gitea/rootfs/etc/systemd/system/gitea.service
Normal file
37
ressources/gitea/rootfs/etc/systemd/system/gitea.service
Normal file
|
@ -0,0 +1,37 @@
|
|||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# Modify these two values and uncomment them if you have
|
||||
# repos with lots of files and get an HTTP error 500 because
|
||||
# of that
|
||||
###
|
||||
#LimitMEMLOCK=infinity
|
||||
#LimitNOFILE=65535
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=git
|
||||
Group=git
|
||||
WorkingDirectory=/var/lib/gitea/work_dir
|
||||
# If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file
|
||||
# (manually creating /run/gitea doesn't work, because it would not persist across reboots)
|
||||
#RuntimeDirectory=gitea
|
||||
ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
|
||||
Restart=always
|
||||
Environment=USER=git HOME=/var/lib/gitea/ GITEA_WORK_DIR=/var/lib/gitea/work_dir
|
||||
# If you install Git to directory prefix other than default PATH (which happens
|
||||
# for example if you install other versions of Git side-to-side with
|
||||
# distribution version), uncomment below line and add that prefix to PATH
|
||||
# Don't forget to place git-lfs binary on the PATH below if you want to enable
|
||||
# Git LFS support
|
||||
# If you want to bind Gitea to a port below 1024, uncomment
|
||||
# the two values below, or use socket activation to pass Gitea its ports as above
|
||||
###
|
||||
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
#AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
###
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
0
ressources/gitea/rootfs/usr/bin/.gitkeep
Normal file
0
ressources/gitea/rootfs/usr/bin/.gitkeep
Normal file
0
ressources/gitea/rootfs/var/lib/gitea/work_dir/.gitkeep
Normal file
0
ressources/gitea/rootfs/var/lib/gitea/work_dir/.gitkeep
Normal file
Loading…
Add table
Add a link
Reference in a new issue