-
Notifications
You must be signed in to change notification settings - Fork 639
Allow cog build and cog push to specify path to custom Dockerfile
#1229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
|
Hi there. Thanks for sharing your work. 👍🏼 If you think this is something that could be generally useful for others, would you be willing to write some docs explaining the rationale behind these changes and what they make possible? |
|
The main usecase for this is developing smaller images, such as https://github.com/replicate/cog-stable-diffusion/blob/syl/pget/Dockerfile It also provides for doing this: There are issues where you want to try small tweaks such as sprinkling in some To use this, all you need to do is add a Dockerfile in the working directory and not used --separate-weights. Should I put this documentation somewhere else? |
Signed-off-by: technillogue <technillogue@gmail.com>
89dee94 to
7addbe1
Compare
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
|
@mattt, so we have a few options about configuring it
For (3) we could do Other reference material includes flyctl's |
|
@technillogue I think |
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
Signed-off-by: technillogue <technillogue@gmail.com>
266cc98 to
1b2528e
Compare
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
2b49211 to
7b8dcf4
Compare
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
7b8dcf4 to
83a9bdd
Compare
|
@technillogue Edit: Never mind, I figured it out. Pushing a fix soon. |
cog build and cog push to specify path to custom Dockerfile
e3cecec to
d870e9b
Compare
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
d870e9b to
b30dabf
Compare
For building tiny images and modifying existing images with less pain
This is also intended as an escape hatch for when cog's dockerfile generation is inadequate. You can use
cog debugas a starting point and edit that.If this is merged, we can revert stuff like #1289. This provides for edge cases where you need a dependency to compile packages that you don't want at runtime, and various other problems.
This is also mentioned in https://github.com/replicate/cog/blob/main/pkg/config/config.go#L20