Skip to content
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

Make Dockerfile cloud ready (tested on runpod) #1950

Merged
merged 5 commits into from
Dec 12, 2022
Merged

Conversation

mauwii
Copy link
Contributor

@mauwii mauwii commented Dec 12, 2022

Updating the build-container.yml Workflow to also push images (@ebr I also already PoC'ed that it would work to push both Dockerfiles with this single Workflow)

Also introducing a new env var: INVOKE_MODEL_RECONFIGURE
With this it is possible that the container pulls necesary Model Files without Interaction. If someone wants to alter configuration he has two easy options:

  • SSH into the container (tested on runpod)
  • create a fork

And if someone asks "whats the difference with the cloud image" - well, I think it has a inappropriate name now and should be renamed to "patchmatch". The Difference is that it comes with patchmatch but therfore only works on amd64, while the Dockerfile is at least tested on amd64 and arm64

* update build-container.yml

* add login step to build-container.yml

* update job name

* update matrix: add registry and platforms
also set latest only for cuda image

* quote string

* use latest for amd and cuda image

* separate images for cuda and amd

* change latest from auto to true

* configure_invoke -y instead of --interactive

* fix argument to --yes

* update matrix:
- use flavor instead of pip-requirements
- add flavor `cloud`
- add `dockerfile`

* introduce INVOKE_MODEL_RECONFIGURE

* add `--cap-add=sys_nice` to run.sh

* update Dockerfile: install wheel

* only have main branch in action again

* disable push of cloud image for now
since it still has it's own workflow, but PoC succeeded

* remove now untrue comments in top
@mauwii mauwii added CI-CD Continuous integration / Continuous delivery docker labels Dec 12, 2022
@hipsterusername
Copy link
Member

LGTM but I'd love to see @ebr get eyes on updates as well

@mauwii mauwii self-assigned this Dec 12, 2022
Copy link
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lstein lstein merged commit 1a16254 into invoke-ai:main Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-CD Continuous integration / Continuous delivery docker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants