Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 20 2020 05:53
    @ashwilliams1 banned @matrixbot
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
techknowlogick
@tklk_:matrix.org
[m]
I'm brushing my teeth now, and about to head to sleep, but this is an issue that we can help with in the Gitea chat, so if you don't figure it out tonight feel free to hop back into chat.
Avahe Kellenberger
@avahe-kellenberger
No spaces in the oauth config in the ui, made sure the secrets matched... I'll probably message tomorrow afternoon
Thanks for the help, feels like I'm getting close
Ivo Jimenez
@ivotron
hello! I am looking at drone/drone#2056 and was wondering if you know whether a plugin was created for that. thanks!
1 reply
Follpvosten
@Follpvosten:matrix.org
[m]
Hi! Working on a Rust project and I'd like to use the volume cache plugin. I've been playing with it for a bit now and I'd like to cache my cargo cache (registry etc.). I eventually got it to work by setting the $CARGO_HOME env variable to .cargo-home and caching that, but I don't know if that's really the only way; I previously tried to cache /root/.cargo, /usr/local/cargo and some others; so I guess my question is: Can plugins not access directories outside of the project dir, or am I looking in the wrong place? (I haven't tried $HOME/.cargo yet, maybe that would work)

To be clear, the exact directories I tried to cache were:

  • /root/.cargo
  • /usr/local/cargo
  • ~/.cargo

For every single one of them, the plugin told me that it doesn't exist.

So I guess the other question is: What is $HOME usually set to during a Drone pipeline? Because it's set to something, I know that cargo would complain otherwise
And also: Would using an env variable like $HOME in a pipeline step even work?
I'm sure there's docs for this somewhere, but I'm having trouble finding them
Martin Williams
@darkpeak
Hi, is it possible to run additional agents outside of the control of the autoscaler and have drone route jobs to these based on DRONE_RUNNER_LABELS and the node: attribute in the .drone.yml file?
2 replies
Thomas Riboulet
@mcansky
in the yml config file , for services and steps, is it possible to specify ports ? (as in docker ports/expose)
9 replies
Hendrik Roth
@HendrikRoth
I am trying to trigger my build pipeline by using the api endpoint: POST /api/repos/{namespace}/{name}/builds (https://docs.drone.io/api/builds/build_create/), but i receive: "message": "invalid character 'b' looking for beginning of value". Running a specific build POST /api/repos/{namespace}/{name}/builds/NUMBER, it works. Is this a bug, or do i understand the docs wrong?
3 replies
Martin Williams
@darkpeak
Is it possible (or a good idea) to run multiple autoscalers with different labels?
Dillonko
@dillonko
Hi all, I need help with my drone-runner connecting to my drone-sever. when I check the logs I see it says for the runner "Cannot connect to the Docker daemon ..."
Brad Rydzewski
@bradrydzewski
@dillonko did you follow the installation instructions and mount the host machine docker socket into your runner container as a volume?
can you provide the docker run command you used to install the runner so we can advise further?
Dillonko
@dillonko
Sure, one sec
@bradrydzewski
docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-e DRONE_RPC_PROTO=https \
-e DRONE_RPC_HOST=www.mysite.com \
-e DRONE_RPC_SECRET=super-duper-secret \
-e DRONE_RUNNER_CAPACITY=2 \
-e DRONE_RUNNER_NAME=mysite.com \
-p 3000:3000 \
--restart always \
--name drone-runner \
drone/drone-runner-docker:1
Brad Rydzewski
@bradrydzewski
is /var/run/docker.sock the docker socket on your host or is it located somewhere else? Also, we have seen scenarios with selinux or apparmor prevent the socket from being mounted
but basically, Cannot connect to the Docker daemon ... means that Drone cannot read /var/run/docker.sock
Dillonko
@dillonko
Ahhh my OS is ubuntu
could that be it
Brad Rydzewski
@bradrydzewski
we use ubuntu at Drone Cloud and we don't have any issues, but it depends on how your Ubuntu was configured
Dillonko
@dillonko
sorry Debian
I didn't really configure much at all
installed docker and a user and that was it pretty much.
Brad Rydzewski
@bradrydzewski
I'm not sure. I would check the following:
  1. do you see /var/run/docker.sock on the host? if it is not there, where is it?
  2. do you have generic issues connecting to the host docker daemon docker run -v /var/run/docker.sock:/var/run/docker.sock docker /bin/sh -c "docker ps"
Sig Ma
@SigmaAQ
hi, I have some questions about the runner labels, what's the difference between DRONE_RUNNER_LABELS and DRONE_AGENT_LABELS? and will a pipeline without "nodes" key be assigned to the runners with labels? thanks
Dillonko
@dillonko

@bradrydzewski
1) it's there just seems to be empty
2) This is my output:

user@localhost:~$ docker run -v /var/run/docker.sock:/var/run/docker.sock docker /bin/sh -c "docker ps"
Unable to find image 'docker:latest' locally
latest: Pulling from library/docker
801bfaa63ef2: Already exists
4f7dc993c79e: Pull complete
d39d95e4997f: Pull complete
ae283de69b7d: Pull complete
1962c7344fe5: Pull complete
aa7a3367c785: Pull complete
5e259227d438: Pull complete
Digest: sha256:73ca622074aa007422a60cc1bfd4e65ca3ee8842e794df54cd1c3be3069d31bf
Status: Downloaded newer image for docker:latest
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b46dea41075e docker "docker-entrypoint.s…" Less than a second ago Up Less than a second keen_cohen
bea8e70d2eb3 drone/drone-runner-docker:1 "/bin/drone-runner-d…" 7 minutes ago Up 7 minutes 0.0.0.0:3000->3000/tcp drone-runner
3ad9eee92324 drone/drone:1 "/bin/drone-server" 7 minutes ago Up 7 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp drone

markizm
@markizm
hello, are there still any available docs specifically for v1.6.0?
Joonas Lehtimäki
@jlehtimaki

https://docs.drone.io/runner/kubernetes/configuration/policies/

This does not have documentation on the match field.
Seems like the first policy is applied to all builds even if we have match for certain repositories.

2 replies
Avahe Kellenberger
@avahe-kellenberger
Is there a way to manually trigger a build for a branch in the UI? One that wasn't ran, already
techknowlogick
@tklk_:matrix.org
[m]
Not via UI, but I use curl -i https://drone.example.com/api/repos/orgslug/reposlug/builds\?branch\=main -X POST \ -H "Authorization: Bearer xxxxxxxxx" in my terminal fairly often. IIRC drone-cli also could do something similar.
Avahe Kellenberger
@avahe-kellenberger
Thanks
Mina R. Mina
@syncer
Hello, is the docker runner support --gpus?
IceBear
@IceBear2k
Hi, I have multiple pipelines set up in a single .drone.yml - One of them depends_on the previous two, however it should also run if either of those two fails, it's basically a clean up step that should always run at the very end. I tried setting when: status: failure, success on a pipeline level and also on a step level. But neither seems to have an effect. If either of the previous two pipelines fail, the last step is skipped. Am I missing something, not doing it right or is this setup currently not possible?
1 reply
Robert Kaussow
@xoxys
does DRONE_RUNNER_PRIVILEGED_IMAGES support wildcards?
Thomas Boerger
@tboerger
I would need to search in code, but I think no wildcard support @xoxys
Robert Kaussow
@xoxys
I hoped someone knows :) thanks, I'll take a look at the code
Robert Kaussow
@xoxys
@tboerger I think I was able to workaround the alpine 3.13/edge build issue
I've added a patched seccomp profile to my fork of plugins/docker thegeeklab/drone-docker@7a36522
After adding the custom seccomp profile it works for me again... https://drone.thegeeklab.de/xoxys/test/21/1/2
Its not perfect but a better alternative than disableing seccomp completely. If I understand it right this workaround is just needed for docker 19.x in docker 20.x this issue is already fixed
But right now there is no docker 20.x dind image to use....
@bradrydzewski If you would accept a PR I'm willing to create one. I can also add a new flag to keep the default behavior and load the custom seccomp profile only if enabled by the user
Thomas Boerger
@tboerger
Awesome, could you prepare a pr linking also to the alpine wiki?
IMHO it should be fine to enable it by default, wdyt?
Robert Kaussow
@xoxys
I would say yes, at the end I can add the way you want