Eugene Brodsky
0b0efa82e9
(docker) ROCm support fixes - contributed by @Rubonnek
2023-07-12 16:51:15 -04:00
Eugene Brodsky
d6da7ad922
(docker) dockerfile fixes including PR feedback
...
When previously using base Debian-ish images, the Invoke image
failed to find CUDA drivers on some RHEL-ish distributions
2023-07-12 16:51:15 -04:00
Brandon Rising
c910376bb6
Don't use .env file lines where = is at the end of the line
2023-07-12 16:51:15 -04:00
Brandon Rising
a674fff17a
Update dockerignore, set venv to 3.10, pass cache to yarn vite buidl
2023-07-12 16:51:15 -04:00
Brandon Rising
674f42ba9a
Pass env vars as build-args, ensure node modules isn't getting passed in
2023-07-12 16:51:15 -04:00
Eugene Brodsky
3b1eeda4d4
(docker) only install default models when running the container against a new runtime directory
2023-07-12 16:51:15 -04:00
Eugene Brodsky
72a11ec4bc
(docker) use docker-compose in deprecated build scripts
...
temporarily retaining the build scripts for backwards compatibility
2023-07-12 16:51:15 -04:00
Eugene Brodsky
e9bc8254dd
(docker) add a README for the docker setup
2023-07-12 16:51:15 -04:00
Eugene Brodsky
2a5737c146
(docker) add README used by the Runpod template
2023-07-12 16:51:15 -04:00
Eugene Brodsky
f3b45d0ad9
(docker) rewrite container implementation with docker-compose support
...
- rewrite Dockerfile
- add a stage to build the UI
- add docker-compose.yml
- add docker-entrypoint.sh such that any command may be used at runtime
- docker-compose adds .env support - add a sample .env file
2023-07-12 16:51:15 -04:00
mauwii
2d9fac23e7
fix Dockerfile
...
- update broken paths after restructure
2023-03-04 23:51:07 +01:00
mauwii
92304b9f8a
remove pip-tools, still split requirements install
...
- also use user:group for definitions
- add `--platform=${TARGETPLATFORM}` to base
2023-02-26 00:53:43 +01:00
mauwii
ec1de5ae8b
more detailed volume parameters
2023-02-26 00:51:30 +01:00
mauwii
49198a61ef
enable BuildKit in env.sh
2023-02-26 00:50:13 +01:00
mauwii
90cda11868
separate installation of requirements and source
...
this should highly increase rebuilding of the image when:
- version did not change
- requirements didn't change
2023-02-24 03:51:18 +01:00
fattire
b08a514594
missed one.
2023-02-14 17:49:01 -08:00
fattire
7aa6c827f7
fix minor typos
2023-02-14 17:38:21 -08:00
mauwii
7be5b4ca8b
update Dockerfile
...
- introduce build arg `VOLUME_DIR`
- fix permissions of the Volume
2023-02-10 22:55:19 +01:00
mauwii
8bd04654c7
remove Trash folder if existing
2023-02-09 04:00:51 +01:00
mauwii
106c7aa956
bindmount outputs directory to ./docker/outputs
2023-02-09 02:48:12 +01:00
mauwii
2ea551d37d
create user home, expose port
2023-02-09 00:56:09 +01:00
mauwii
05d51d7b5b
re-use --link
, lock pip cache
2023-02-08 23:45:15 +01:00
mauwii
09f69a4d28
Add output when activating venv
2023-02-08 23:39:28 +01:00
mauwii
a338af17c8
Initialize PIP_CACHE_DIR after setting the env
2023-02-08 23:17:15 +01:00
mauwii
888d3ae968
cleanup Dockerfile
2023-02-08 21:54:06 +01:00
mauwii
a28120abdd
small improvements to env.sh
2023-02-08 21:53:57 +01:00
mauwii
4493d83aea
update docker-scripts instructions
2023-02-08 21:35:19 +01:00
mauwii
5bb0f9bedc
update Dockerfile - more simple user creation
2023-02-08 19:57:41 +01:00
mauwii
3833b28132
Create a new user for the container runtime
...
without root permission
2023-02-07 23:46:43 +01:00
mauwii
c2e11dfe83
update build-container.yml
...
- add long sha tag
- update cache-from
Dockerfile:
- re-use `apt-get update`
env.sh/build.sh:
- rename platform to lowercase
2023-02-07 09:27:20 +01:00
mauwii
17e1930229
remove CONTAINER_FLAVOR build arg
...
also disable currently unused PIP_PACKAGE build arg
will start using it when problems with XFORMERS are sorted out
2023-02-07 09:27:20 +01:00
mauwii
bde94347d3
don't use --link
in COPY
2023-02-07 09:27:20 +01:00
mauwii
9150f9ef3c
move LABEL to top
2023-02-07 09:27:20 +01:00
mauwii
f0212cd361
update Dockerfile
2023-02-07 09:27:20 +01:00
mauwii
07a9062e1f
update .dockerignore and scripts
2023-02-07 09:27:20 +01:00
mauwii
cdb3e18b80
add flavor to pip cache id
...
to prevent cache invalidation
2023-02-07 09:27:20 +01:00
mauwii
0402766f4d
add author label
2023-02-06 14:05:27 +01:00
mauwii
1c197c602f
update Dockerfile, .dockerignore and workflow
...
- dont build frontend since complications with QEMU
- set pip cache dir
- add pip cache to all pip related build steps
- dont lock pip cache
- update dockerignore to exclude uneeded files
2023-02-05 20:20:50 +01:00
mauwii
90656aa7bf
update Dockerfile
...
- add build arg `FRONTEND_DIR`
2023-02-05 20:20:50 +01:00
mauwii
394b4a771e
update Dockerfile
...
- remove yarn install args `--prefer-offline` and `--production=false`
2023-02-05 20:20:50 +01:00
mauwii
9c3f548900
update settings output in build.sh
2023-02-05 20:20:50 +01:00
mauwii
eb702a5049
fix env.sh, update Dockerfile, update build.sh
...
env.sh:
- move check for torch to CONVTAINER_FLAVOR detection
Dockerfile
- only mount `/var/cache/apt` for apt related steps
- remove `docker-clean` from `/etc/apt/apt.conf.d` for BuildKit cache
- remove apt-get clean for BuildKit cache
- only copy frontend to frontend-builder
- mount `/usr/local/share/.cache/yarn` in frountend-builder
- separate steps for yarn install and yarn build
- build pytorch in pyproject-builder
build.sh
- prepare for installation with extras
2023-02-05 20:20:50 +01:00
mauwii
1386d73302
fix env.sh
...
only try to auto-detect CUDA/ROCm if torch is installed
2023-02-05 20:20:50 +01:00
mauwii
84c1122208
fix build.sh and env.sh
2023-02-05 20:20:50 +01:00
Matthias Wild
01a2b8c05b
Adapt latest changes to Dockerfile ( #2478 )
...
* remove non maintained Dockerfile
* adapt Docker related files to latest changes
- also build the frontend when building the image
- skip user response if INVOKE_MODEL_RECONFIGURE is set
- split INVOKE_MODEL_RECONFIGURE to support more than one argument
* rename `docker-build` dir to `docker`
* update build-container.yml
- rename image to invokeai
- add cpu flavor
- add metadata to build summary
- enable caching
- remove build-cloud-img.yml
* fix yarn cache path, link copyjob
2023-02-03 22:34:47 +00:00