Go to file
AJ Walter 555c26b7ce
Make Dockerfiles OCI compliant (#408)
## Justification

Closes issue #352

This update makes the Dockerfiles OCI compliant, making it easier to use
Buildah or other image building techniques that require it

## Implementation

This changes a few things, listed below:

* auto: Download container is switched to alpine. The `git` container
specified the `/git` directory as a volume. As such, all the files under
`/git` would be lost after each script invoke. Alpine is used later in
the build process anyway, so it shouldn't be any extra cost to switch to
it
* auto: "New" clone.sh script is copied into the container, which is
basically just the previous clone script that was embedded in the
Dockerfile.
* all: `<<EOF` heredoc styles have been switched to `&& \`
* all: I added NVIDIA_DRIVER_CAPABILITIES and NVIDIA_VISIBLE_DEVICES to
expose my Nvidia card. This is most likely a selinux/podman problem, but
shouldn't change anything with docker to add it.
* docker-compose: I added selinux labeling. I tested this with real
docker (not just podman!) and it seems to work fine. Though I suggest
you try it too.

## Testing

Locally builds with buildah. 

Note: for caching to work properly, you still need to replace
`/root/.cache/pip` with `/root/.cache/pip,Z` on selinux systems.

Note: I was having some trouble running invoke. Thought it was this PR,
but it's a known issue. See
https://github.com/invoke-ai/InvokeAI/issues/3182

---------

Co-authored-by: AbdBarho <ka70911@gmail.com>
2023-04-16 10:32:03 +02:00
.devscripts [BREAKING] Rename UIs (#254) 2022-12-04 11:00:28 +01:00
.github Update PR template 2022-12-10 11:42:04 +01:00
.vscode Force LF (#24) 2022-09-03 06:59:16 +02:00
data Add mounts for openpose (#387) 2023-04-05 19:09:07 +02:00
output Initial 2022-08-27 12:38:12 +01:00
services Make Dockerfiles OCI compliant (#408) 2023-04-16 10:32:03 +02:00
.editorconfig Force LF (#24) 2022-09-03 06:59:16 +02:00
.gitattributes Force LF (#24) 2022-09-03 06:59:16 +02:00
.gitignore Update versions (#120) 2022-10-07 09:46:07 +02:00
docker-compose.yml Add mounts for openpose (#387) 2023-04-05 19:09:07 +02:00
LICENSE [BREAKING] Rename UIs (#254) 2022-12-04 11:00:28 +01:00
README.md [BREAKING] Rename UIs (#254) 2022-12-04 11:00:28 +01:00

Stable Diffusion WebUI Docker

Run Stable Diffusion on your machine with a nice UI without any hassle!

Setup & Usage

Visit the wiki for Setup and Usage instructions, checkout the FAQ page if you face any problems, or create a new issue!

Features

This repository provides multiple UIs for you to play around with stable diffusion:

AUTOMATIC1111

Full feature list here, Screenshots:

Text to image Image to image Extras

InvokeAI (lstein)

Full feature list here, Screenshots:

Text to image Image to image Extras

Sygil (sd-webui / hlky)

Full feature list here, Screenshots:

Text to image Image to image Image Lab

Contributing

Contributions are welcome! Create a discussion first of what the problem is and what you want to contribute (before you implement anything)

Disclaimer

The authors of this project are not responsible for any content generated using this interface.

This license of this software forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please read the license.

Thanks

Special thanks to everyone behind these awesome projects, without them, none of this would have been possible: