feat: improve Docker configuration and detection handling #242

Merged
lunny merged 1 commits from appleboy/act_runner:docker into main 2023-06-18 05:38:41 +00:00
Member
  • Pass cfg to envcheck.CheckIfDockerRunning function
  • Add Docker struct to config.go for Docker configuration
  • Update config.example.yaml with docker configuration options
  • Modify CheckIfDockerRunning in docker.go to use Docker host from config if provided

Signed-off-by: appleboy appleboy.tw@gmail.com

- Pass `cfg` to `envcheck.CheckIfDockerRunning` function - Add `Docker` struct to `config.go` for Docker configuration - Update `config.example.yaml` with `docker` configuration options - Modify `CheckIfDockerRunning` in `docker.go` to use Docker host from config if provided Signed-off-by: appleboy <appleboy.tw@gmail.com>
appleboy added the
kind
enhancement
label 2023-06-16 22:30:41 +00:00
appleboy added 1 commit 2023-06-16 22:30:44 +00:00
feat: improve Docker configuration and detection handling
- Pass `cfg` to `envcheck.CheckIfDockerRunning` function
- Add `Docker` struct to `config.go` for Docker configuration
- Update `config.example.yaml` with `docker` configuration options
- Modify `CheckIfDockerRunning` in `docker.go` to use Docker host from config if provided

Signed-off-by: appleboy <appleboy.tw@gmail.com>
All checks were successful
checks / check and test (pull_request) Successful in 39s
56a7c930f8
appleboy requested review from lunny 2023-06-16 22:30:58 +00:00
appleboy requested review from wolfogre 2023-06-16 22:30:59 +00:00
lunny approved these changes 2023-06-17 03:02:24 +00:00
wxiaoguang approved these changes 2023-06-17 03:03:03 +00:00
Author
Member

@lunny @wxiaoguang Please help to merge. I don't have permission.

@lunny @wxiaoguang Please help to merge. I don't have permission.
Member

@lunny @wxiaoguang Please help to merge. I don't have permission.

I don't, either.

You are not authorized to merge this pull request.

> @lunny @wxiaoguang Please help to merge. I don't have permission. I don't, either. > You are not authorized to merge this pull request.
lunny merged commit 9e4a5f7363 into main 2023-06-18 05:38:41 +00:00
Owner

Why not container.docker_host? There are some options for docker/container in container. Developers could get confused about where to add options.

Why not `container.docker_host`? There are some options for docker/container in `container`. Developers could get confused about where to add options.
Sign in to join this conversation.
No description provided.