Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 3.45 KB

custom-image.md

File metadata and controls

49 lines (38 loc) · 3.45 KB

Custom Image

Clone the Repo

git clone https://github.com/Dekita/runpod-serverless-comfyui-worker.git

Build the Image

Development: docker-compose -f docker.compose.dev.yaml --build Production: docker-compose -f docker.compose.prod.yaml --build

Run the Image

docker-compose -f docker.compose.prod.yaml up This will use the input data from test_input.json to run the job after which the container will exit.

Build & Run the Image

docker-compose -f docker.compose.dev.yaml up --build

Push the Image to Docker Hub

docker push dekita/runpod-serverless-comfyui-worker:dev Replace repo path with your own repo details.

Windows Quirks

To run the Docker image on Windows, you will need to have WSL2 and a Linux distro (like Ubuntu) installed on Windows. You may also need to follow the steps below to ensure that your nvidia gpu is able to be 'passed through' to your container.

Automatically deploy to Docker hub with Github Actions

Thanks to runpod-worker-comfy, which this repo was initially based on, this repo contains two workflows that publish the image to Docker hub using Github Actions:

  • docker-dev.yml: Creates the image and pushes it to Docker hub with the dev tag on every push to the main branch
  • docker-release.yml: Creates the image and pushes it to Docker hub with the latest and the release tag. It will only be triggered when you create a release on GitHub

If you want to use this, you should add these secrets to your repository:

Configuration Variable Description Example Value
DOCKERHUB_USERNAME Your Docker Hub username. your-username
DOCKERHUB_TOKEN Your Docker Hub token for authentication. your-token
DOCKERHUB_REPO The repository on Docker Hub where the image will be pushed. timpietruskyblibla
DOCKERHUB_IMG The name of the image to be pushed to Docker Hub. runpod-worker-comfy