Skip to content

Support shared code between multiple models #2709

@bfirsh

Description

@bfirsh

Suppose you have a directory structure like this:

model1/
  cog.yaml
model2/
  cog.yaml
shared/
  somelib.py

It would be neat if there was an easy way to read shared from the models. Open to ideas.

The Docker way of doing this is to build from the parent directory and then specify the file with -f, but this is not ideal because then all the models have to support the working directory containing the parent directory, and you have to specify -f all the time to make it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions