This adds an act_runner instance to the docker-compose.
There is no good way to retrieve a token for registering the runner from Gitea at this time, so we seed the DB with one during initialization.
This adds an act_runner instance to the docker-compose.
There is no good way to retrieve a token for registering the runner from Gitea at this time, so we seed the DB with one during initialization.
For...reasons...we use gitea.local rather than host.docker.internal. I forget for the moment exactly those reasons. Possibly because we want the hostname to be usable from the host as well as inside containers. Possibly also we want to be able to target a gitea that is running somewhere other than on the host?
For...reasons...we use `gitea.local` rather than `host.docker.internal`. I forget for the moment exactly those reasons. Possibly because we want the hostname to be usable from the host as well as inside containers. Possibly also we want to be able to target a gitea that is running somewhere other than on the host?
The GITEA_INSTANCE_URL is used by act_runner for two things: (1) what endpoint to poll for new tasks, (2) for constructing the URL to pass to any spawned task executors for checking out code.
Unfortunately neither server (the container name in the stack) nor gitea.local are resolvable for both (1) and (2). server works for (1) but not (2) (since task containers spawned by act_runner are not in the same SO stack) and gitea.local won't work for either, since it isn't resolvable inside docker.
The only name thing I've found that works universally is to reach back to the exposed port on the host.
The GITEA_INSTANCE_URL is used by act_runner for two things: (1) what endpoint to poll for new tasks, (2) for constructing the URL to pass to any spawned task executors for checking out code.
Unfortunately neither `server` (the container name in the stack) nor `gitea.local` are resolvable for both (1) and (2). `server` works for (1) but not (2) (since task containers spawned by act_runner are not in the same SO stack) and gitea.local won't work for either, since it isn't resolvable _inside_ docker.
The only name thing I've found that works universally is to reach back to the exposed port on the host.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This adds an act_runner instance to the docker-compose.
There is no good way to retrieve a token for registering the runner from Gitea at this time, so we seed the DB with one during initialization.
@@ -51,0 +61,4 @@- giteavolumes:- /var/run/docker.sock:/var/run/docker.sock- ./act_runner:/dataFor...reasons...we use
gitea.localrather thanhost.docker.internal. I forget for the moment exactly those reasons. Possibly because we want the hostname to be usable from the host as well as inside containers. Possibly also we want to be able to target a gitea that is running somewhere other than on the host?@@ -51,0 +61,4 @@- giteavolumes:- /var/run/docker.sock:/var/run/docker.sock- ./act_runner:/dataThe GITEA_INSTANCE_URL is used by act_runner for two things: (1) what endpoint to poll for new tasks, (2) for constructing the URL to pass to any spawned task executors for checking out code.
Unfortunately neither
server(the container name in the stack) norgitea.localare resolvable for both (1) and (2).serverworks for (1) but not (2) (since task containers spawned by act_runner are not in the same SO stack) and gitea.local won't work for either, since it isn't resolvable inside docker.The only name thing I've found that works universally is to reach back to the exposed port on the host.
@@ -51,0 +61,4 @@- giteavolumes:- /var/run/docker.sock:/var/run/docker.sock- ./act_runner:/data(Note, if we could somehow make sure that any newly spawned task containers were attached to the same stack, we could likely use
server.)@@ -51,0 +61,4 @@- giteavolumes:- /var/run/docker.sock:/var/run/docker.sock- ./act_runner:/dataHmm. I thought
host.docker.internalwasn't defined in all Docker installs?