by

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 05:53
    @ashwilliams1 banned @matrixbot
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
limengyu
@limengyu1990
Jens Riisom Schultz
@Ibmurai
@bradrydzewski Waiting for that Harness CI FAQ. I'm scared. I'm using Drone OSS version with mysql and agents. Will that no longer be possible in the future?
Velmurugan Kalaiselvan
@myvelcn
how to promote deployments in kubernetes...?
limengyu
@limengyu1990
I have successfully tested it and can deploy to k8s. But the update has not been successful, you must manually stop the application service in k8s, and then re-execute ci to deploy
Nanda278
@Nanda278
Hi I have a requirement, is there a way where i could use jdk and python 3 together.?
Thomas Boerger
@tboerger
You got to provide an image with that or you got to install it on every ci run
Nanda278
@Nanda278
Is there any image which supports both python and jdk together?
a-dawg
@a-dawg
how to run drone server with helm in openshift? when container creating I have interrupt received, terminating process error in the logs
zshaik
@zillani
Hi I am receiving unauthorize access when I try to push to docker register.
I am albe to push to same repo from command line
kind: pipeline
type: kubernetes
name: build
steps:
  - name: build
    image: plugins/docker:latest
    settings:
      username: zillanis
      password: Harbor@@12345
      repo: harbor.mxpdemos.com/gitops/ui
      dockerfile: ./test-drone
      registry: harbor.mxpdemos.com
      tags:
        - latest
this is my .drone.yml
error
fd8dbe3c801b: Layer already exists
unauthorized: unauthorized to access repository: gitops/ui, action: push: unauthorized to access repository: gitops/ui, action: push
time="2020-08-07T13:35:42Z" level=fatal msg="exit status 1"
Velmurugan Kalaiselvan
@myvelcn
+ kubectl apply -f deployment.yml
User "default" set.
Cluster "default" set.
Context "default" created.
Switched to context "default".
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "/v1, Resource=pods", GroupVersionKind: "/v1, Kind=Pod"
Name: "nginx", Namespace: "drone"
Object: &{map["spec":map["containers":[map["image":"nginx" "name":"nginx" "resources":map[]]] "dnsPolicy":"ClusterFirst" "restartPolicy":"Always"] "status":map[] "apiVersion":"v1" "kind":"Pod" "metadata":map["namespace":"drone" "annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "creationTimestamp":<nil> "labels":map["run":"nginx"] "name":"nginx"]]}
from server for: "deployment.yml": pods "nginx" is forbidden: User "system:serviceaccount:drone:default" cannot get resource "pods" in API group "" in the namespace "drone"
its running from kubernetes pipeline..
i have given rbac access to the service account drone...
Velmurugan Kalaiselvan
@myvelcn
it uses default service account from drone namespace.. how to change the service account name while running the pipeline ```
- name: deliver
  image: sinlead/drone-kubectl
  settings:
   kubernetes_server:
     from_secret: k8s_server
   kubernetes_cert:
     from_secret: k8s_cert
   kubernetes_token:
     from_secret: k8s_token
  commands:
   - kubectl apply -f deployment.yml
Nanda278
@Nanda278
Hi i need a favour, my requirement is i need to use java and python together within a pipeline..
any command line steps to install either of the one?
techknowlogick
@techknowlogick
@Ibmurai the OSS version of drone doesn't include support for mysql or agents already. you are likely using an unlicensed copy of enterprise (although you could fall under the generous free limits that are allowed)
Brad Rydzewski
@bradrydzewski

fd8dbe3c801b: Layer already exists
unauthorized: unauthorized to access repository: gitops/ui, action: push: unauthorized to access repository: gitops/ui, action: push
time="2020-08-07T13:35:42Z" level=fatal msg="exit status 1"

@zillani have you checked your Harbor server logs to see if they provide more details? The error looks like it is coming from Harbor.

@myvelcn you can change the default service account by passing the following environment variable setting to the yaml https://docs.drone.io/runner/kubernetes/configuration/reference/drone-service-account-default/
1 reply
Brad Rydzewski
@bradrydzewski
@Nanda278 typically you would provide a Docker image that has Java and Python already installed, and then use that image in your pipeline.
Nanda278
@Nanda278
@bradrydzewski Its a kind of customised image to be fed to the pipeline ?
Nanda278
@Nanda278
@bradrydzewski if possible can you provide any basic links where a simple custom image can be built easily that could be used within drone.
Brad Rydzewski
@bradrydzewski
@Nanda278 you can use any tutorial for building your own Docker image from a Dockerfile and then publishing to the Docker registry. Then you can reference you image in the yaml
e.g. image: nanda278/my-custom-image
Jens Riisom Schultz
@Ibmurai

@Ibmurai the OSS version of drone doesn't include support for mysql or agents already. you are likely using an unlicensed copy of enterprise (although you could fall under the generous free limits that are allowed)

Oh? Oh... Err... I build it myself from the sources on github. Am I violating the license? @bradrydzewski Because then I'll get right on fixing that!

Afaik the nolimit tag enables mysql (among other things) and the BUILDING_OSS file says to use this tag? https://github.com/drone/drone/blob/2006bac45c731a41c6ffba7ff9139b6bee2a6cfc/BUILDING_OSS#L5

Kacper
@Upgreydd
Hey! I have a question - I'm still trying to get autoscaller to work as expected and new instances are created but from time to time I'm getting instance creation error
error during connect: Post "https://IP_HERE/v1.33/images/create?fromImage=drone%2Fdrone-runner-docker&tag=1": EOF
Kacper
@Upgreydd
Added DRONE_ENABLE_REAPER=true - we will see
Olgierd Kasprowicz
@allgreed
Hey, would it be possible for someone familiar with the drone-docker codebase to have a look? drone-plugins/drone-docker#295
I've got the feature to a somewhat-working state, but would really appreciate a bit of high-level guidance on dotting the i's and crossing the t's ;)
Ju
@Dad-Ju
hello, how does the droneio provide its status on the test. there have to be a token for github api? and if so. can i get it somehow the make my own status via scripts too ?like as an env ?
Adam
@GTANAdam
Hey everyone!
Could I get a small answer to what actually is the difference between drone/agent & drone/runner? thank you in advance!
Brad Rydzewski
@bradrydzewski
@GTANAdam drone/agent is deprecated and replaced by drone/drone-runner-docker
Adam
@GTANAdam
hmm.. okay, thank you so much!
Would have been great to actually have that written somewhere in the documentations!
Jens Riisom Schultz
@Ibmurai

hmm.. okay, thank you so much!
Would have been great to actually have that written somewhere in the documentations!

So that's why the version seemed locked! It works fine with drone 1.9.0 and 1.6.2 agents for me though... I should probably switch ;D

Matt Baker
@Bak3y
does DRONE_GC_ENABLED=true no longer work for the autoscaler?
I had reason to cycle my worker nodes a while back and now I'm getting disk full complaints for the first time in months
and I don't see the drone-gc container running anywhere
nevermind - I'm an idiot, it helps if you SSH into the correct system
Matt Baker
@Bak3y
Looks like this is my culprit - docker/cli#2533
Matt Baker
@Bak3y
If I'm using DRONE_AGENT_ENV_FILE does that file need to be inside the drone-autoscaler container itself?
Brad Rydzewski
@bradrydzewski
@Bak3y you could do DRONE_AGENT_ENVIRON=DOCKER_API_VERSION=1.37
in fact, we should probably set this automatically
Athreya Patel
@athreyapatel
Hi all, I got very interested in drone because of features it offers. As I am new, I couldn't find to configure pipeline in a single file for multiple platforms. Are there any way to do that?platform:
os: darwin
arch: amd64
platform:
os: darwin
arch: arm64
2 replies
Alex Clever
@aclever
Hello everybody!
After long and stable working drone showed me this message:
Screen Shot 2020-08-11 at 19.53.14.png
Any thoughts?
Thanks