Difference between revisions of "Drone"

From OSGeo
Jump to navigation Jump to search
(add link to drone.io)
(add deprecation notice)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
'''DEPRECATED''' -- please adapt your configuration for use with newer [[Dronie]]
 +
 
Drone is an experimental instance of the [http://drone.io Drone CI] server that runs on [[Osgeo6]] and provides build services for software hosted on the [[SAC:Gitea|Gitea service]].
 
Drone is an experimental instance of the [http://drone.io Drone CI] server that runs on [[Osgeo6]] and provides build services for software hosted on the [[SAC:Gitea|Gitea service]].
  
Line 26: Line 28:
 
  - One on [[User:Strk|Sandro Santilli]] development machine               
 
  - One on [[User:Strk|Sandro Santilli]] development machine               
 
  - One on [[User:Robe|Regina Obe]] host (debbie.postgis.net)           
 
  - One on [[User:Robe|Regina Obe]] host (debbie.postgis.net)           
  - One on [[User:Bjornharrtell|Björn Harrtell]] host
+
  - <s>One on [[User:Bjornharrtell|Björn Harrtell]] host</s>
 +
- One on [[User:Robe|Regina Obe]] winnie.postgis.net (ianna VM) with IP 50.78.240.108
 +
 
 +
A list of known agents can be fetched from the server with this command:
 +
 
 +
  zgrep ' path="/ws/broker"' /var/log/drone.log*  | sed 's/.* ip=//;s/ .*//' | sort -u
 +
 
 
                                                                                                      
 
                                                                                                      
 
Running an agent is a matter of running a docker container.                                         
 
Running an agent is a matter of running a docker container.                                         
Line 32: Line 40:
 
currently stored in a private repository under Gitea:                                                 
 
currently stored in a private repository under Gitea:                                                 
 
                                                                                                      
 
                                                                                                      
   https://git.osgeo.org/gitea/sac/drone-agent-config
+
   https://git.osgeo.org/gitea/sac/drone-agent-config (0.5 branch)
  
 
Those willing to setup an agent please contact the administrator of the service.  
 
Those willing to setup an agent please contact the administrator of the service.  

Latest revision as of 22:02, 5 June 2019

DEPRECATED -- please adapt your configuration for use with newer Dronie

Drone is an experimental instance of the Drone CI server that runs on Osgeo6 and provides build services for software hosted on the Gitea service.

It can be accessed via https://drone.osgeo.org/ (login with your OSGeo Userid)

Files location and configuration

Scripts to start the server are in /etc/drone, which is a clone of https://git.osgeo.org/gitea/sac/drone-server-config.git

The /etc/rc.local script invokes the start script in /etc/drone

Logs are in /var/log/drone.log, rotated via /etc/logrotate.d/drone.

Binary is in /usr/local/bin (single executable, from the 0.5.0 tag of http://github.com/drone/drone).

Data is in a "drone" PostgreSQL database.

Administration

At the moment Sandro Santilli (promoter of the initiative) have admin privileges from the web UI.

Drone agents

The CI service relies on people to donate agents (build slaves). As of 2017 there are 3 known such slaves:

- One on Sandro Santilli development machine              
- One on Regina Obe host (debbie.postgis.net)          
- One on Björn Harrtell host
- One on Regina Obe winnie.postgis.net (ianna VM) with IP 50.78.240.108 

A list of known agents can be fetched from the server with this command:

 zgrep ' path="/ws/broker"' /var/log/drone.log*  | sed 's/.* ip=//;s/ .*//' | sort -u


Running an agent is a matter of running a docker container. Scripts to run the docker with appropriate configuration are currently stored in a private repository under Gitea:

 https://git.osgeo.org/gitea/sac/drone-agent-config (0.5 branch)

Those willing to setup an agent please contact the administrator of the service.