Open JohnTigue opened 1 year ago
StableStudio has a very interesting postCreateCommand:
"postCreateCommand": "
cd /home/node &&
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git webui &&
cd webui &&
python -m venv ~/.webui-venv &&
bash -c 'source ~/.webui-venv/bin/activate' &&
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 &&
pip install -r requirements_versions.txt"
Notice also that it calls out for the Nvidia drivers it is going to need:
"features": {
"ghcr.io/devcontainers/features/nvidia-cuda:1": {
"cudaVersion": "11.8",
"installCudnn": true,
"installNvtx": true
},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.10.6"
},
There should be a VS Code dev container set up in this repo. It should:
Even without a dev container, the repo should be such that dev should be able to:
copilot init
The above requires that aws-cli and copilot are installed. With a dev container, the dev could clone the repo and not have to install any tools on their local system (except for two config text files in ~/.aws).