Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
Brad Rydzewski
@bradrydzewski
2) install the drone runner (agent) on a separate instance. You can have 1 or many instances with the agent installed to create a distributed, multi-machine build environment
Sergey Lapin
@lapanoid
I think there is some misunderstanding.. I want to run recursively .drone files on single machine, not sure how it is related to multi-machine build environment
Is it possible to do with drone? now each package is separate repo, for monorepo to work only other option I see now is git submodules, which is.. not really fun
Brad Rydzewski
@bradrydzewski
sorry, I'm not sure I fully understand what you are trying to achieve
can you explain "run recursively .drone files on single machine" ?
Sergey Lapin
@lapanoid
Maybe I just wrong with that I implementation idea. I want to support monorepos does not really matter how. I checked how semaphore doing it https://docs.semaphoreci.com/use-cases/building-monorepo-projects/#an-example-monorepo-project-setup. Maybe something similar can be done in drone?
Brad Rydzewski
@bradrydzewski
there are a number of community extensions that can be used to extend Drone's functionality to better support monorepos
Sergey Lapin
@lapanoid
Brad Rydzewski
@bradrydzewski
I recommend https://github.com/meltwater/drone-convert-pathschanged, which takes advantage of some newer features
(both are good, but the one from meltwater uses a v2 endpoint which is more efficient)
Sergey Lapin
@lapanoid
Cool, will take a look, thanks again!
@bradrydzewski one more question. Can I use drone exec with plugins, so I could test configuration locally?
Thomas Boerger
@tboerger
The mono repo stuff won't work with drone exec, but it should be possible to use drone exec for every separate drone config
Sergey Lapin
@lapanoid
Ok, good to know, thanks!
Aleksey Rumyantcev
@alexrym
Hi All! I'm new in Drone CI. Please anybody help me. I've .drone,yaml in root folder on gthub but it is not working after commit.
Thomas Boerger
@tboerger
You need to enable the repository before you commit the drone config. If you already added the config before you need to do any other kind of commit.
Patricio Napoli
@pnapoliJC
Hello! I'm using ${DRONE_TAG} inside a command of a step, the step has a when: event: tag, but the yaml unmarshalling is triggered even when event is push, breaking the pipeline and displaying: yaml: unmarshal errors: line 157: cannot unmarshal !!map into string
How can I avoid this error?
Ah, fixed using $$TAG
Mike Zupan
@mzupan
is there anyway to copy secrets from one repo to another?
ashwilliams1
@ashwilliams1
there is not. for sharing secrets you can always use organization secrets, a secret extension (vault, etc) or create your own secret extension.
Michael Nicholls
@mcnicholls
Hi, I'm trying to get drone deployed and running with the latest kubernetes helm chart. Things seem to be running fine until a build is triggered. It get as far as the cloning step but it just hangs there. I've not followed the steps for installation of drone-kube-runner as it seems to launch a drone-contoller as and when needed (guess the drone-kube-runner is an older method?). Anyone had similar problems?
Thomas Boerger
@tboerger
Which Helm chart?
The one in the official repo is outdated
The controller one has been experimental and have been replaced by the kube runner
Michael Nicholls
@mcnicholls
Ahhhh ok. Is there a helm chart that is recommend or is it best to install it manually?
That's the one I've used I think. It got updated yesterday (it was 2.5.0 when i installed it and i've updated to 2.5.1 this morning)
Thomas Boerger
@tboerger
https://github.com/HighwayofLife/helm-charts-drone is a working and up to date chat
Chart
Michael Nicholls
@mcnicholls
That's great thanks. Will give it a go
Michael Nicholls
@mcnicholls
I'm trying that chart, but it seems like it's full of bugs :-( I'm trying to fix them and see if i can get it up and running
Aleksey Rumyantcev
@alexrym
@tboerger Thanks Thomas. I activated the repository and committed drone.yml but nothing happens. Dron GUI shows Your Build List is Empty.
How do i make simple Hello World and see the result? I will be grateful for the advice.
Michael Nicholls
@mcnicholls
@tboerger I've managed to fix the errors and get things up and running. I shall submit a PR incase it's any help. Is dind mode currently supported on kubernetes installations?
Nicholas Klem
@nicholasklem
urk, my ex-colleague was disconnected from our github org, and now the github integration is broken :-|
drone-dd8658f9b-48z6t drone time="2020-01-17T14:54:32Z" level=error msg="error: sanity-io/custodian: cannot find .drone.yml in refs/heads/staging: GET https://api.github.com/repos/sanity-io/custodian/contents/.drone.yml?ref=25c1a847c5aba266c3ff88e930ba78220a173937: 401 Bad credentials []"
Brad Rydzewski
@bradrydzewski
@nicholasklem you can de-activate and re-activate which will change the owner to you (or whoever performs these actions). Or you can use drone repo chown <repo> to change ownership to yourself
Jem Altieri
@jemaltieri
Hi there all - I'm trying to set up drone on Fargate (AWS instanceless ECS). I have the server up and running, but now it isn't clear to me at all what runner to use. I feel like I'm not the only one with this setup - what am I missing?
Brad Rydzewski
@bradrydzewski
Hi @jemaltieri , you should choose the runner based on workload and desired execution environment. We provide some high level overviews at https://docs.drone.io/installation/runners/
For example, if want Drone to execute pipelines directly on the host machine, with no containerization or isolation, choose the exec runner. If you want Drone to execute pipelines inside Docker containers, choose the docker runner. If you want Drone to ssh into existing machines and execute your pipeline as shell commands, choose the ssh runner. If you want to execute pipelines as kubernetes pods, inside a kubernetes environment, choose the kubernetes runner.
Jem Altieri
@jemaltieri
But, for example, how would I use the docker runner if Fargate doesn't expose the docker daemon socket?
Brad Rydzewski
@bradrydzewski
I am not too familiar with Fargate, but the Docker Daemon is a system requirement for using the Docker runner
Jem Altieri
@jemaltieri
I'm beginning to think that runners may not be compatible with fargate.
And drone-agent is fully deprecated, correct?
Brad Rydzewski
@bradrydzewski
correct. It was replaced by the drone/drone-runner-docker image
Jem Altieri
@jemaltieri
ok. I'm going to look at using EC2 ECS for my runners. Does anyone here know of any documentation of running drone on ECS at all? When I google for "drone ecs" I get a lot of plugins that deploy to ECS, but none about running drone itself on ECS.
Brad Rydzewski
@bradrydzewski
I am sure there are third party tutorials out there somewhere, but we only document how to run Drone using docker run since this is sort of the "lowest common denominator" across all systems. The docker run command should translate to docker-compose, kubernetes, rancher, ecs, etc since these runtimes are all container-based.
Brad Rydzewski
@bradrydzewski
for example, here is a terraform project for running Drone on ECS. It uses the drone/agent image but these are backward compatible so you should be able to swap with drone/drone-runner-docker https://github.com/appleboy/drone-terraform-in-aws/blob/master/ecs-drone-agent.tf
Jem Altieri
@jemaltieri
this is what i was basing my work inside of fargate on. thanks for your help!
matrixbot
@matrixbot
dgrove If i'm using jsonnet for the drone configuration. Is there a way that I can get that to work with imports?