Skip to content

Using Docker #19

@slifty

Description

@slifty

Discussion

What do you want to talk about?

We have talked about Docker a few times, and in a few different contexts. Now that the architecture has taken more shape I'd like us to revisit the conversation in order to create some more compelling developer stories.

Here are some places Docker could make sense:

Recipes
Our cookbook has some example TV Kitchen implementations. At the very least it would make sense to have Docker be the standard mechanism for running a given recipe.

This would mean that yarn start extracting-captions would leverage docker compose instead of node directly. The recipe would run in docker, (and... maybe log output to stdout? I don't know for sure...). This would mean that developers would no longer have to install things like ffmpeg or ccextractor in order to invoke a recipe.

This would also mean that each recipe would provide a dockerfile which sets up any file requirement.

Appliances
In the mid term, however, I think it would be really cool for individual appliances to run inside of individual containers that are fully set up with any dependencies. This would mean that even outside of recipes, we could just say something like "if you have docker installed, you're set to use any TVK appliance".

Of course, we could make this an optional flag when setting up a countertop (so people who want to just run appliances without containers, could do so).

In this model:

  1. Appliances would run within docker containers on a 1:1 basis.
  2. Appliances would have a dockerfile.
  3. The countertop would coordinate with the docker engine to set up and connect various appliances.

This won't make sense to do without first addressing #17. Once appliances function as pipes, I believe Docker makes it straightforward to expose pipes to / from a given container.

This approach would probably involve creating a docker-appliance repository which would be set up to connect a given IAppliance with the docker's stdin / stdout.

Relevant Resources / Research

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionThe conversation is the point

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions