This emulator tries to emulate the behaviour of Cloud Run Jobs. As of this writing, Google does not provide a Cloud Run Jobs emulator, which makes local development a huge pain. This project aims to help you out until they do release an official emulator.
This project is not associated with Google.
To use this emulator with docker compose
you'll need to add it as a service and create a cloud-run-jobs-config.yaml
file.
services:
cloud-run-jobs-emulator:
image: ghcr.io/kurtschwarz/cloud-run-jobs-emulator:latest
configs:
- source: cloud-run-jobs-config
target: /cloud-run-jobs-config.yaml
volumes:
- /var/run/docker.sock:/var/run/docker.sock
configs:
cloud-run-jobs-config:
file: ./cloud-run-jobs-config.yaml
The cloud-run-jobs-config.yaml
file should have the following structure:
jobs:
some-awesome-job:
image: my-docker-image:tag
another-great-job:
image: my-docker-image:tag