Commit Graph

57 Commits

Author SHA1 Message Date
zerodoctor
04332e5527 init commit for coverting to podman 2023-10-04 23:19:30 -05:00
Julien Duchesne
70e2fb0415 Add step labels to step containers
This adds the following labels:
- `io.drone.step.number`
- `io.drone.step.name`
We use these as labels when we send our logs to Loki

Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>
2022-12-01 09:02:53 -05:00
Julien Duchesne
65d05f2c6d Add retries option to the clone step (#44)
* Add retries option to the clone step
Used to support https://github.com/drone/drone-git/pull/43
Will require a go mod update to add the arg to the manifest: https://github.com/drone/runner-go/pull/22

* Update `runner-go` to v1.12.0

* Add test
2022-06-09 16:14:11 +01:00
Doug Simmons
dc81f8756a Fix 3 doc typos in compiler.go 2022-03-10 02:33:24 -08:00
Marko Gaćeša
3c1bfd3a84 Use IsRestrictedVolume from runner-go 2021-06-30 14:52:05 +02:00
Marko Gaćeša
66c5b70315 Merge pull request #9 from divialth/fix/checkServiceIsPrivileged
check privileged image whitelist in service section
2021-06-30 11:11:11 +02:00
Julien Duchesne
67ee5cc7d0 Expose the authorized keys tmate feature (#18)
* Expose the authorized keys tmate feature
Described here: https://tmate.io/ in "Access Control"
The variable accepts the file content in raw format (with \n) and dumps it into a file which tmate reads
* Use echo instead of printf
* Add missing quote
* Only setup tmate settings if debug is activated
2021-06-24 09:47:12 +01:00
Brad Rydzewski
ab785195a0 Update util.go 2021-01-12 11:32:56 -05:00
Brad Rydzewski
ea74fa2ba4 reduce restricted volume false positives 2021-01-08 10:32:39 -05:00
Brad Rydzewski
4f8d2e4eee add feature toggle to disable docker plugin volume check 2020-12-18 11:54:36 -05:00
Brad Rydzewski
00b690ce8c support for remote tmate servers 2020-11-20 16:47:52 -05:00
Brad Rydzewski
2335394161 restrict volumes used with plugins 2020-11-17 08:36:06 -05:00
Brad Rydzewski
c8b3a362a2 update list of internal volumes and variables 2020-11-17 08:27:58 -05:00
Brad Rydzewski
dbafc98217 added native copy command for multi-arch support 2020-11-11 17:46:10 -05:00
Brad Rydzewski
2457d8d0d7 source tmate binary from docker image 2020-11-11 17:24:24 -05:00
Brad Rydzewski
bb9e46aab0 cleanup tmate download [ci skip] 2020-11-11 15:59:15 -05:00
Brad Rydzewski
078ffd80a9 update runner-go package to include build.debug attribute 2020-11-09 15:48:07 -05:00
Brad Rydzewski
1df19caf57 WIP support for tmate [CI SKIP] 2020-11-09 14:57:55 -05:00
Brad Rydzewski
fe9dece266 move restricted mount to helper function 2020-08-17 23:17:20 -04:00
Brad Rydzewski
a8d9c659bf increase list of restricted volumes 2020-08-17 23:10:46 -04:00
Brad Rydzewski
8a8164e2de unit tests to check privileged mode 2020-08-17 22:54:55 -04:00
Brad Rydzewski
bde3fbb785 option to disable netrc for non-clone steps 2020-08-13 17:44:20 -04:00
Brad Rydzewski
06b89a91b4 support for defining docker network opts 2020-08-11 09:03:07 -04:00
divialth
70b898ea1a check privileged image whitelist in service section
Signed-off-by: divialth <65872926+divialth@users.noreply.github.com>
2020-07-08 13:54:31 +02:00
Brad Rydzewski
861b2b3475 Merge remote-tracking branch 'origin/master' 2020-04-15 13:01:13 -04:00
Brad Rydzewski
80c26bc5d9 option to set global shm_size 2020-04-15 13:00:56 -04:00
Imran Ismail
83d3ac97b8 chmod .netrc to private
netrc gem checks for permissions and drone-runner-docker creates the file with 644 permission

```
Netrc::Error:
       Permission bits for '/root/.netrc' should be 0600, but are 644
```
2020-04-03 12:16:30 +08:00
Brad Rydzewski
f215b64f3d added support for environment extesion v2 protocol 2020-03-26 13:03:15 -07:00
Brad Rydzewski
bdc7b6cacf repository registry credentials should take precedence over globals 2020-03-24 14:29:22 -07:00
Brad Rydzewski
754c8d44a7 do not override pipeline-defined resource limits 2020-01-27 14:32:12 -08:00
Brad Rydzewski
01bf779338 support for mem_limit and memswap_limit 2020-01-17 11:17:14 -08:00
Brad Rydzewski
385ce04eec support :ro suffix for volumes 2020-01-17 11:06:30 -08:00
Brad Rydzewski
0bd2dff3dd add some basic stubs for ro volume support 2020-01-15 11:44:23 -08:00
Brad Rydzewski
a4675cb5ca support for fast failure 2019-12-09 15:35:03 -08:00
Brad Rydzewski
f746e00e7c fix unit tests 2019-12-09 14:07:24 -08:00
Brad Rydzewski
2e48cd1b3b abstract polling and execution to runner-go library 2019-12-06 16:10:27 -08:00
Brad Rydzewski
8fa2a23129 support for new env plugin 2019-11-20 10:01:42 -08:00
Brad Rydzewski
56f26b858a fix powershell LastExitCode on windows 2019-11-01 11:48:54 -07:00
Brad Rydzewski
2e1fc1a142 fixed issue with windows using bash script 2019-11-01 09:28:42 -07:00
Brad Rydzewski
d6505a1717 customize clone image 2019-10-31 10:26:02 -07:00
Brad Rydzewski
5b1d8d65ed hook up global networks 2019-10-30 15:13:54 -07:00
Brad Rydzewski
3761bd0df4 add global resource limmits 2019-10-29 13:08:42 -07:00
Brad Rydzewski
3c1ae23a1e added shm_size 2019-10-26 11:33:52 -07:00
Brad Rydzewski
a319f263c9 unit tests reflect clone pulls if-not-exists 2019-10-26 11:16:40 -07:00
Brad Rydzewski
1f9a599640 support for image pull logs 2019-10-24 23:36:35 -07:00
Brad Rydzewski
4119ac2a6d fix issues with privileged not set 2019-10-24 19:25:18 -07:00
Brad Rydzewski
f54c3463cb mount working dir with drone exec 2019-10-24 16:06:57 -07:00
Brad Rydzewski
5dc0de0e14 add image to compiler tests 2019-10-23 10:51:04 -07:00
Brad Rydzewski
09f19e5b99 fix compiler unit tests, hook up daemon 2019-10-22 23:13:40 -07:00
Brad Rydzewski
cb17765779 remove drone-runtime dependency [ci skip] 2019-10-22 15:49:22 -07:00