mirror of https://gitea.com/gitea/act_runner.git
* Use same socket defaulting strategy every time * Always default to DOCKER_HOST * Add more debug logs * Commenting, and massively simplified socket logic * Rever to upstream run_context.go * Fix EACCESS error regarding /opt/hostedtoolcache * Revert "Fix EACCESS error regarding /opt/hostedtoolcache" This reverts commit b2a8394d3358e1b5aab9dabe555d4a3f2bf0b2f9. * Revert CLI debug logs * Move socket and host handling to own function, and simplify logic * Move to container package * Make return be a struct * Write tests to verify functionality * Fix DOCKER_HOST being set to the string "DOCKER_HOST" * Always use struct * Use socketLocation, for DOCKER_HOST and more defaults * Fixup arguments to GetSocketAndHost in test and root.go * Un-struct hasDockerHost * Fixup logic and set hasDockerHost * Minor scoping & variable name change * Move functionality to a new file * Rename corresponding test * Reviewfix * Fix DOCKER_HOST expected * Fix test assertions and add comments * Swap comparison actual, expected * Fixed no-DOCKER_HOST env test * Fixed default socket test * Add test to verify review comments * Add more test for greater test coverage * Consistent comment references * Fix bug found while writing tests * Passing tests * NoMountNoHost testfix * Rename test appropriately * NoMount testfix * Fixed OnlySocket * Swap expected <-> actual in tests --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| DOCKER_LICENSE | ||
| container_types.go | ||
| docker_auth.go | ||
| docker_build.go | ||
| docker_cli.go | ||
| docker_cli_test.go | ||
| docker_images.go | ||
| docker_images_test.go | ||
| docker_logger.go | ||
| docker_network.go | ||
| docker_pull.go | ||
| docker_pull_test.go | ||
| docker_run.go | ||
| docker_run_test.go | ||
| docker_socket.go | ||
| docker_socket_test.go | ||
| docker_stub.go | ||
| docker_volume.go | ||
| executions_environment.go | ||
| host_environment.go | ||
| host_environment_test.go | ||
| linux_container_environment_extensions.go | ||
| linux_container_environment_extensions_test.go | ||
| parse_env_file.go | ||
| util.go | ||
| util_openbsd_mips64.go | ||
| util_plan9.go | ||
| util_windows.go | ||