Skip to content

Instantly share code, notes, and snippets.

@steren
Last active June 30, 2024 18:05
Show Gist options
  • Save steren/2f204776c1cb54cfbf7ddcb03feeef3a to your computer and use it in GitHub Desktop.
Save steren/2f204776c1cb54cfbf7ddcb03feeef3a to your computer and use it in GitHub Desktop.
Fooocus
docker pull ghcr.io/lllyasviel/fooocus:latest
docker tag ghcr.io/lllyasviel/fooocus:latest us-central1-docker.pkg.dev/steren-serverless/containers/fooocus:latest
docker push us-central1-docker.pkg.dev/steren-serverless/containers/fooocus:latest
gcloud alpha run deploy fooocus --image us-central1-docker.pkg.dev/steren-serverless/containers/fooocus --region us-central1 --gpu 1 --gpu-type nvidia-l4 --cpu 8 --memory 32Gi --no-cpu-throttling --max-instances 5 --set-env-vars CMDARGS=" --listen --port=8080" --allow-unauthenticated --execution-environment gen2
# Doesn't work with GCS mount:
# --add-volume name=gcs,type=cloud-storage,bucket=steren-fooocus --add-volume-mount volume=gcs,mount-path=/content/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment