### Setup Digital Ocean Environment with doctl CLI Source: https://github.com/minimalcompact/thumbor/blob/master/recipes/kubernetes/README.md Commands to set up your environment for running Thumbor on Digital Ocean Kubernetes. This includes initializing doctl and saving your cluster's kubeconfig. ```bash doctl auth init doctl kubernetes cluster kubeconfig save ``` -------------------------------- ### Setup GKE Environment with gcloud CLI Source: https://github.com/minimalcompact/thumbor/blob/master/recipes/kubernetes/README.md Commands to set up your environment for running Thumbor on Google Kubernetes Engine. This includes logging in, configuring Docker, and installing kubectl. ```bash gcloud auth login gcloud auth configure-docker gcloud components install kubectl ``` -------------------------------- ### Apply GKE Kubernetes Configuration Source: https://github.com/minimalcompact/thumbor/blob/master/recipes/kubernetes/README.md Command to apply a Kubernetes configuration file to your GKE cluster. Assumes the file is named 'gce-simple-ingress.yaml'. ```bash kubectl apply -f gce-simple-ingress.yaml ``` -------------------------------- ### Apply Digital Ocean Kubernetes Configuration Source: https://github.com/minimalcompact/thumbor/blob/master/recipes/kubernetes/README.md Command to apply a Kubernetes configuration file to your Digital Ocean cluster. Assumes the file is named 'do-simple-ingress.yaml'. ```bash kubectl apply -f do-simple-ingress.yaml ``` -------------------------------- ### Configure Thumbor Cloud Storage Loader (GKE) Source: https://github.com/minimalcompact/thumbor/blob/master/recipes/kubernetes/README.md YAML snippet showing environment variables for configuring Thumbor's cloud storage loader. Requires project ID and bucket ID. ```yaml - name: LOADER value: "thumbor_cloud_storage.loaders.cloud_storage_loader" - name: CLOUD_STORAGE_PROJECT_ID value: "your-project-id" - name: CLOUD_STORAGE_BUCKET_ID value: "your.bucket.id" ``` -------------------------------- ### Run Thumbor Solo (Docker) Source: https://github.com/minimalcompact/thumbor/blob/master/README.md This command runs a single instance of the Thumbor Docker image, exposing port 80. It's the simplest way to get Thumbor up and running for basic image processing tasks. ```bash docker run -p 80:80 ghcr.io/minimalcompact/thumbor wget http://localhost/unsafe/500x150/iili.io/H8m6pHv.png ``` -------------------------------- ### Run Thumbor Multi-Process (Docker) Source: https://github.com/minimalcompact/thumbor/blob/master/README.md This command deploys Thumbor in a multi-process configuration using a Docker image, specifying the number of processes via an environment variable. This setup is suitable for handling higher loads and improving performance. ```bash docker run -p 80:80 -e THUMBOR_NUM_PROCESSES=8 ghcr.io/minimalcompact/thumbor wget http://localhost/unsafe/500x150/iili.io/H8m6pHv.png ``` -------------------------------- ### Docker Run Command for Thumbor Nginx Cache Source: https://github.com/minimalcompact/thumbor/blob/master/nginx-proxy-cache/README.md This command demonstrates how to run the thumbor-nginx-proxy-cache Docker image. It mounts the Docker socket for dynamic configuration and a local volume to persist cache data across container recreations. The volume mapping ensures that cache contents are not lost when the container is stopped or removed. ```docker docker run -v /var/run/docker.sock:/tmp/docker.sock:ro -v /path/to/cache:/var/cache/nginx minimalcompact/thumbor-nginx-proxy-cache ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.