I’ve compiled the OSS version of drone, executed drone-server with the following vars:
DRONE_GITHUB_SERVER=https://github.com
DRONE_GITHUB_CLIENT_ID=...
DRONE_GITHUB_CLIENT_SECRET=.....
DRONE_SERVER_HOST=..
DRONE_SERVER_PORT=:8080
DRONE_RUNNER_LOCAL=true
DRONE_AGENTS_ENABLED=false
DRONE_LOGS_DEBUG=true
DRONE_LOGS_COLOR=true
DRONE_SERVER_PROTO=http
DRONE_RUNNER_CAPACITY=2
DRONE_USER_CREATE=username:bfagundez,admin:true
DRONE_LOGS_TRACE=true
DRONE_RUNNER_NAME="default"
All goes fine with the github auth and the hooks, they come in and all.
I use this simple pipeline:
kind: pipeline
name: default
steps:
- name: test_drone
image: alpine:3.9
commands:
- echo "Hello world"
Nothing happens after the push.
See server logs:
ubuntu@ip-172-31-22-149:~$ drone-server
license: ""
authn:
endpoint: ""
secret: ""
skipverify: false
agent:
disabled: false
azureblob:
containername: ""
storageaccountname: ""
storageaccesskey: ""
convert:
extension: ""
endpoint: ""
secret: ""
skipverify: false
cron:
disabled: false
interval: 30m0s
cloning:
alwaysauth: false
username: ""
password: ""
image: ""
pull: IfNotExists
database:
driver: sqlite3
datasource: core.sqlite
secret: ""
legacybatch: false
datadog:
enabled: false
endpoint: ""
token: ""
docker:
config: ""
http:
allowedhosts: []
hostsproxyheaders: []
sslredirect: false
ssltemporaryredirect: false
sslhost: ""
sslproxyheaders: {}
stsseconds: 0
stsincludesubdomains: false
stspreload: false
forcestsheader: false
browserxssfilter: true
framedeny: true
contenttypenosniff: false
contentsecuritypolicy: ""
referrerpolicy: ""
jsonnet:
enabled: false
logging:
debug: true
trace: true
color: true
pretty: false
text: false
prometheus:
enableanonymousaccess: false
proxy:
addr: http://54.193.73.155
host: 54.193.73.155
proto: http
registration:
closed: false
registries:
endpoint: ""
password: ""
skipverify: false
repository:
filter: []
visibility: ""
trusted: false
runner:
local: true
image: drone/controller:1.0.0
platform: linux/amd64
os: linux
arch: amd64
kernel: ""
variant: ""
machine: default
capacity: 2
labels: {}
volumes: []
networks: []
devices: []
privileged: []
environ: {}
limits:
memswaplimit: 0
memlimit: 0
shmsize: 0
cpuquota: 0
cpushares: 0
cpuset: ""
nomad:
enabled: false
datacenters:
- dc1
namespace: ""
region: ""
prefix: drone-job-
image: ""
imagepull: false
memory: 1024
cpu: 500
kube:
enabled: false
namespace: ""
path: ""
url: ""
ttl: 300
serviceaccountname: ""
pullpolicy: Always
image: ""
rpc:
server: ""
secret: m1zz3n0101gT
debug: false
host: 54.193.73.155
proto: http
s3:
bucket: ""
prefix: ""
endpoint: ""
pathstyle: false
secrets:
endpoint: ""
password: ""
skipverify: false
server:
addr: http://54.193.73.155
host: 54.193.73.155
port: :8080
proto: http
acme: false
email: ""
cert: ""
key: ""
session:
timeout: 720h0m0s
secret: Qv3aCTg7di44kGZVRy1WvjOeP0WRewiA
secure: false
mappingfile: ""
status:
disabled: false
name: ""
users:
create:
username: bfagundez
machine: false
admin: true
token: ""
filter: []
minage: 0s
validate:
endpoint: ""
secret: ""
skipverify: false
webhook:
events: []
endpoint: []
secret: ""
skipverify: false
yaml:
endpoint: ""
secret: ""
skipverify: false
bitbucket:
clientid: ""
clientsecret: ""
skipverify: false
debug: false
gitea:
server: ""
clientid: ""
clientsecret: ""
skipverify: false
scope:
- repo
- repo:status
- user:email
- read:org
debug: false
github:
server: https://github.com
apiserver: https://api.github.com
clientid: cf7b124b5153a33e31e7
clientsecret: <obscured>
skipverify: false
scope:
- repo
- repo:status
- user:email
- read:org
ratelimit: 0
debug: false
gitlab:
server: https://gitlab.com
clientid: ""
clientsecret: ""
skipverify: false
debug: false
gogs:
server: ""
skipverify: false
debug: false
stash:
server: ""
consumerkey: ""
consumersecret: ""
privatekey: ""
skipverify: false
debug: false
{"level":"info","msg":"main: internal scheduler enabled","time":"2019-10-30T06:22:16Z"}
{"build.limit":0,"expires":"0001-01-01T00:00:00Z","kind":"foss","level":"debug","msg":"main: license loaded","repo.limit":0,"time":"2019-10-30T06:22:16Z","user.limit":0}
{"admin":true,"level":"debug","login":"bfagundez","machine":false,"msg":"bootstrap: create account","time":"2019-10-30T06:22:16Z","token":""}
{"admin":true,"level":"debug","login":"bfagundez","machine":false,"msg":"bootstrap: updating account","time":"2019-10-30T06:22:16Z","token":""}
{"admin":true,"level":"debug","login":"bfagundez","machine":false,"msg":"bootstrap: account already up-to-date","time":"2019-10-30T06:22:16Z","token":""}
{"acme":false,"host":"54.193.73.155","level":"info","msg":"starting the http server","port":":8080","proto":"http","time":"2019-10-30T06:22:16Z","url":"http://54.193.73.155"}
{"interval":"30m0s","level":"info","msg":"starting the cron scheduler","time":"2019-10-30T06:22:16Z"}
{"level":"debug","msg":"events: stream opened","request-id":"1SubgOieQw1FyjTro7wo01jE3ro","time":"2019-10-30T06:22:18Z"}
{"commit":"503833dcb866245bacc65c4b3d5eb1783102306e","event":"push","level":"debug","msg":"webhook parsed","name":"sports_fan","namespace":"bfagundez","time":"2019-10-30T06:22:49Z"}
{"commit":"503833dcb866245bacc65c4b3d5eb1783102306e","event":"push","level":"debug","msg":"trigger: received","ref":"refs/heads/test-drone-community","repo":"bfagundez/sports_fan","time":"2019-10-30T06:22:49Z"}
{"fields.time":"2019-10-30T06:22:50Z","latency":518314071,"level":"debug","method":"POST","msg":"","remote":"140.82.115.247:20605","request":"/hook","request-id":"1SubkMJC7zCVUOagP8SFOOZnFC4","time":"2019-10-30T06:22:50Z"}
I could not find much documentation about the OSS capabilities to be honest.
Does the OSS drone-server version is capable of running such pipeline?
Do I need to spin an agent all the time?
Does the build count of 5k builds a year applies when I’m using the closed source agents?
Any help appreciated!