17 Sep 2019 |
@gitter_laughingmoon:matrix.org | I have a question about drone+vault, I want to use the secret in vault in drone.yml, what should I do? | 07:54:27 |
@gitter_tboerger:matrix.org | @Laughingmoon first you need to setup the vault integration for your drone server, it’s based on https://hub.docker.com/r/drone/vault and accepts these config vars: https://github.com/drone/drone-vault/blob/master/cmd/drone-vault/main.go#L39-L47, after that you can follow https://docs.drone.io/configure/secrets/external/vault/ | 08:32:05 |
@gitter_laughingmoon:matrix.org | ''' version: "3.7" services: drone-server: image: drone/drone:1 container_name: drone_server networks: - dronenet
ports:
- "8000:80"
- "8443:443"
environment:
- DRONE_OPEN=true
- DRONE_GITEA=true
- DRONE_DEBUG=true
- DRONE_PROVIDER=gitea
- DRONE_RUNNER_CAPACITY=2
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_SERVER_HOST=192.168.32.50:8000
- DRONE_GITEA_SERVER=http://192.168.32.50:3000/
- DRONE_GITEA_SKIP_VERIFY=false
- DRONE_SERVER_PROTO=http
- DRONE_TLS_AUTOCERT=false
- DRONE_ADMIN=asher
- DRONE_GIT_USERNAME=asher
- DRONE_GIT_PASSWORD=123456
- DRONE_RPC_SECRET=8e1589b9261b53dd78e2180c0cd561198c2f5c1e
- DRONE_LOGS_DEBUG=true
- DRONE_DATABASE_DRIVER=sqlite3
- DRONE_DATABASE_DATASOURCE=/data/database.sqlite
- DRONE_USER_CREATE=username:asher,admin:true
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/drone_1.0:/data
drone-agent: image: drone/agent:1 container_name: drone_agent networks: - dronenet
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/drone_1.0:/data
depends_on:
- drone-server
restart: always
environment:
- DRONE_SECRET_SECRET=7890bcce69bb685a9a424767fe9d1be1
- DRONE_RPC_SERVER=http://drone-server:9000
- DRONE_SECRET_ENDPOINT=http://dronetest_vault:3000
- DRONE_RPC_SECRET=8e1589b9261b53dd78e2180c0cd561198c2f5c1e
- DRONE_LOGS_DEBUG=true
- DRONE_DEBUG=true
- DRONE_LOGS_PRETTY=true
- DRONE_LOGS_NOCOLOR=false
vault: image: vault:latest container_name: vault restart: always ports: - 8200:8200
networks:
- dronenet
volumes:
- ./vault/file:/vault/file
- ./vault/config:/vault/config
- ./vault/logs:/vault/logs
cap_add:
- IPC_LOCK
environment:
- VAULT_ADDR=http://127.0.0.1:8200
command: vault server -config=/vault/config/local.json
drone-vault: image: drone/vault container_name: dronetest_vault depends_on: - drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/drone_1.0:/data
restart: always
networks:
- dronenet
environment:
- SECRET_KEY=7890bcce69bb685a9a424767fe9d1be1
- DEBUG=true
- VAULT_ADDR=http://127.0.0.1:8200
- VAULT_TOKEN_RENEWAL=84h
- VAULT_TOKEN_TTL=168h
- VAULT_TOKEN=s.JXiDyRwdgEo1RI6yR6df1QHe
networks: dronenet: ''' | 10:01:37 |
@gitter_laughingmoon:matrix.org | This is my configuration, it looks a bit messy. | 10:02:26 |
@gitter_tboerger:matrix.org | your code formatting is not useable at all :D | 11:29:23 |
18 Sep 2019 |
| @gitter_null93:matrix.org joined the room. | 13:50:06 |
@gitter_null93:matrix.org | Hello, is the drone plugin index repo still maintained? I have had a pull request open for a while now and it looks like more have came in after mine with no attention. drone/drone-plugin-index#229 | 13:50:06 |
@gitter_tboerger:matrix.org | It is maintained mostly maintained by me, but I simply forgot some prs. I have commented on your pr | 14:44:50 |
@gitter_null93:matrix.org | Thank you | 14:49:02 |
@gitter_tboerger:matrix.org | Yw | 14:53:28 |
19 Sep 2019 |
@gitter_laughingmoon:matrix.org | Drone.yml can hide the path of the script or the command line? | 01:44:24 |
@gitter_tboerger:matrix.org | What do you mean? | 05:48:45 |
21 Sep 2019 |
| @gitter_manvinderr_gitlab:matrix.org joined the room. | 10:33:55 |
@gitter_manvinderr_gitlab:matrix.org | How to trigger drone pipeline for the changed module only, in a multi-module project. @bradrydzewski Also answers the same here https://discourse.drone.io/t/drone-io-how-to-control-multi-module-build-pipeline-where-modules-are-interdependent-for-ci/5643/2. We are using gitlab, can we use changeset for gitlab also. | 10:33:55 |
@gitter_tboerger:matrix.org | The changeset extension is an opensource project provided by the community | 10:40:14 |
@gitter_tboerger:matrix.org | As far as I know it's currently limited to github, but it should be quite easy to port it | 10:40:43 |
@gitter_rabeawahab:matrix.org | @tboerger thanks for approving my PR, what is usually the process of publishing the new changes on Drone plugins website ? | 11:01:45 |
@gitter_rabeawahab:matrix.org | or if u can guide me to a doc that has the steps | 11:02:05 |
@gitter_tboerger:matrix.org | Generally it's possible to get it merged by me, but I prefer another review by one of the maintainers before I click the merge button. After merging a pr it's getting automatically published by drone | 11:03:18 |
@gitter_rabeawahab:matrix.org | :thumbsup: | 11:04:47 |
@gitter_rabeawahab:matrix.org | thanks man | 11:04:51 |
23 Sep 2019 |
| @gitter_gopiio:matrix.org joined the room. | 21:09:17 |
@gitter_gopiio:matrix.org | hey guys, I am trying to use AWS Secret manager. trying to follow the docs on external secret manager. Is there any docs on how to configure aws secret extenstion? | 21:09:20 |
| @gitter_gopiio:matrix.org changed their display name from gitter_gopiio to Gopi (Gitter). | 21:25:28 |
24 Sep 2019 |
| @gitter_masircana:matrix.org joined the room. | 17:26:11 |
@gitter_masircana:matrix.org | Hi Guys. I'm searching a lot about a monorepo solution for Bitbucket. I know there are some great plugins fir github, like https://github.com/bitsbeats/drone-tree-config or https://github.com/microadam/drone-config-changeset-conditional or https://github.com/microadam/drone-config-plugin-pipeline. I would like to know if someone is working on this fir bitbucket or do you have a workaround? I'm new in drone, i have no more than 10 simple pipelines. But i'm really stuck with this project. I'm reading about config plugins or jsonnet, but dont get a clear way to do it. | 17:26:12 |
@gitter_tboerger:matrix.org | AFAIK there is no extension for bitbucket. Maybe because there are not lots of people using it | 17:42:25 |
@gitter_bradrydzewski:matrix.org | @masircana all of the projects mentioned above are third-party plugins created by the community. I think the recommendation would be to fork and port one of those existing projects to use the Bitbucket API instead of the GitHub API | 18:36:46 |
@gitter_bradrydzewski:matrix.org | you could also reach out to the project owners and ask them if they are willing to implement bitbucket support, or collaborate with you to implement bitbucket support | 18:38:06 |
@gitter_tboerger:matrix.org | Does go-scm already support required methods for those plugins? | 18:52:44 |