Skip to content

Let's you run Google Cloud Jobs in your local development env

Notifications You must be signed in to change notification settings

kurtschwarz/cloud-run-jobs-emulator

Repository files navigation

Google Cloud Run Jobs Emulator

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.

Usage

Docker Compose

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

About

Let's you run Google Cloud Jobs in your local development env

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published