www-apps/drone: Add ebuild for self-build drone.io server.
Package-Manager: Portage-3.0.9, Repoman-3.0.2
This commit is contained in:
parent
299077deeb
commit
474a224d51
7 changed files with 1200 additions and 0 deletions
33
www-apps/drone/files/app.ini
Normal file
33
www-apps/drone/files/app.ini
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Drone configuration file. See https://docs.drone.io/server/reference/ for a
|
||||
# complete list of configuration options.
|
||||
|
||||
# Required string value provides your Gitea oauth Client ID.
|
||||
DRONE_GITEA_CLIENT_ID="gitea-client-id"
|
||||
# Required string value provides your Gitea oauth Client Secret.
|
||||
DRONE_GITEA_CLIENT_SECRET="gitea-client-secret"
|
||||
# Required string value provides your Gitea server address. For example
|
||||
# https://gitea.company.com
|
||||
DRONE_GITEA_SERVER="https://gitea.example.com/"
|
||||
|
||||
# Required string value provides the shared secret generated in the previous
|
||||
# step. This is used to authenticate the rpc connection between the server and
|
||||
# runners. The server and runner must be provided the same secret value.
|
||||
DRONE_RPC_SECRET="rpc-secret"
|
||||
|
||||
# Required string value provides your external hostname or IP address. If using
|
||||
# an IP address you may include the port. For example drone.company.com.
|
||||
DRONE_SERVER_HOST="drone.example.com"
|
||||
# Required string value provides your external protocol scheme. This value
|
||||
# should be set to http or https. This field defaults to https if you configure
|
||||
# ssl or acme.
|
||||
DRONE_SERVER_PROTO="https"
|
||||
# The port to listen to. Defaults to :8080. NB: Don't forget the leading colon (:)!
|
||||
DRONE_SERVER_PORT=":8080"
|
||||
|
||||
# Database settings. If commented, use SQLite by default.
|
||||
#DRONE_DATABASE_DRIVER="mysql"
|
||||
#DRONE_DATABASE_DATASOURCE="db-user:db-password@unix(/run/mysqld/mysqld.sock)/db-name?parseTime=true"
|
||||
|
||||
# Optional boolean value configures Drone to authenticate when cloning public
|
||||
# repositories.
|
||||
# DRONE_GIT_ALWAYS_AUTH=true
|
30
www-apps/drone/files/drone.service
Normal file
30
www-apps/drone/files/drone.service
Normal file
|
@ -0,0 +1,30 @@
|
|||
[Unit]
|
||||
Description=drone.io build server
|
||||
Documentation=https://docs.drone.io/
|
||||
|
||||
#AssertPathIsDirectory=/var/lib/drone
|
||||
#AssertPathIsReadWrite=/var/lib/drone
|
||||
|
||||
#After=docker.service
|
||||
After=mysqld.target
|
||||
After=network.target
|
||||
After=postgresql-9.3.service
|
||||
After=postgresql-9.4.service
|
||||
After=postgresql-9.5.service
|
||||
After=postgresql-9.6.service
|
||||
After=postgresql-10.service
|
||||
After=postgresql-11.service
|
||||
After=postgresql-12.service
|
||||
#Requires=docker.service
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
User=drone
|
||||
Group=drone
|
||||
|
||||
ExecStart=/usr/sbin/drone -env-file /etc/drone/app.ini
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
www-apps/drone/files/gomod.patch
Normal file
8
www-apps/drone/files/gomod.patch
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- go.mod~ 2020-10-29 14:19:22.000000000 +0100
|
||||
+++ go.mod 2020-12-05 00:47:43.572653141 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-module github.com/drone/drone
|
||||
+module github.com/drone/drone/cmd/drone-server
|
||||
|
||||
replace github.com/docker/docker => github.com/docker/engine v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue