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
TP Honey
20cb0a029c
Merge pull request #45 from mach6/fix-doc-comments
...
Fix 3 doc typos in compiler.go
2022-04-11 16:04:02 +01:00
TP Honey
703b3f2f50
(dron-254) handle wait for log transfer
2022-04-07 15:27:51 +01:00
Doug Simmons
dc81f8756a
Fix 3 doc typos in compiler.go
2022-03-10 02:33:24 -08:00
Javier Palomo
1b77df020e
feat(engine): Add debug logs for Docker.Destroy errors ( #20 )
...
* feat(engine): Add debug logs for Docker.Destroy errors
This doesn't change the current behaviour of ignoring the errors, but
adds some debug logging to help identify issues with the underlying
Docker engine when stopping and cleeaning up containers, volumes and
networks.
Signed-off-by: Javier Palomo <javier.palomo@grafana.com >
* feat(engine): check for ErrNotFound and Conflict
Co-authored-by: Marko Gaćeša <markogacesa@hotmail.com >
Co-authored-by: Marko Gaćeša <markogacesa@hotmail.com >
2022-03-03 17:54:11 +01:00
TP Honey
1333e9a428
Merge pull request #28 from staffanselander/yaml-definition-depends-on
...
Use correct name for the root depends_on yaml key.
2021-07-06 10:35:23 +01:00
Staffan Selander
7c8f0423d0
Use correct name for the root depends_on yaml key.
2021-07-06 08:54:38 +02: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
tphoney
2f6d747028
(feat) adding image field to step
2021-02-27 05:08:32 +00: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
ce4a8ea66c
added code to retry docker wait on early exit
2020-09-21 16:37:34 -04:00
Brad Rydzewski
4b10e95195
ensure invalid dependecy fails linter with helpful error
2020-08-19 10:43:59 -04: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
c3fc3fcf3a
Merge remote-tracking branch 'origin/master'
2020-08-11 09:04:43 -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
68b7fcba30
upgrade docker client
2020-06-21 14:49:23 -04: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
6ba65c68ac
include global env in tests [CI SKIP]
2020-01-07 10:54:46 -08:00
ashwilliams1
98e3f4f210
Merge pull request #2 from toni-moreno/fix_add_shm_size_option_to_docker_runner
...
adds shm_size yaml option to steps and services
2019-12-10 07:25:30 -08:00
Toni Moreno
1c5f0924bc
added shm_size yaml option to steps and services
2019-12-10 14:33:18 +01: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