Closed Bug 1057882 Opened 10 years ago Closed 6 years ago

docker-worker: Support "Services"

Categories

(Taskcluster :: Workers, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jlal, Unassigned)

References

Details

(Whiteboard: [docker-worker])

Attachments

(1 file)

As part of the refactoring for TC v1.0 the worker has a generic concept of "links" as part of making task cluster a generally useful CI arbitrary links should be available.

The logic is something like this:

 - ensure "links" are pulled (using same pull logic added for private repos)
 - allow "aliases" in the docker worker schema
 - follow same teardown logic for the "proxy" link which needs its own logic.

Example schema:

payload: {
  ...,
  services: {
    image: "user/rabbitmq:tag",
    alias: "amqp",
    command: ["/bin/bash", "-c", "startamqpthing"]
  }
}

The schema should mirror the primary payload (it could even be recursive to allow services in services though that may be meta =/)
Basically this is needed to run taskcluster tests in taskcluster (or related services)... It is generically useful however for many tasks. In particular this could allow "readonly" links to private images where we link the private images to public ones but do not allow scripts to be run on the private instances (which could be very useful for build caching)
> Basically this is needed to run taskcluster tests in taskcluster
I've said it before, bootstrapping shouldn't necessarily be a goal, it's just a footgun.
But it might be nice to have this for a lot of other reasons :)
Summary: "Services" → docker-worker: Support "Services"
We should up the priority of this I think we can use this to deploy sscache sanely (note that we should allow private service images to open up a number of workflows)
Blocks: 1080265
Blocks: 1106203
Got blocked on other things for the moment so getting at least the basics up.
Assignee: nobody → jlal
Status: NEW → ASSIGNED
One issue that occurred to me is if there is a chance to use this to do bad things on a docker-worker host.  Could multiple services be spawned that are now taking up resources that aren't accounted for in the capacity of an instance?
Not critical to gecko work
No longer blocks: 1080265
Component: TaskCluster → Docker-Worker
Product: Testing → Taskcluster
Assignee: jlal → nobody
Mentor: jlal
Status: ASSIGNED → NEW
Whiteboard: [docker-worker]
Component: Docker-Worker → Worker
This is old enough that I'm not entirely sure what is being discussed. please reopen if this is still valid.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Component: Worker → Workers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: