Sign inSign up

178inaba/firestore-emulator

By 178inaba

Updated 6 days ago

Container image of Firestore / Datastore emulator.

Image
Databases & storage
0

10K+

178inaba/firestore-emulator repository overview

Firestore Emulator Container Image

Usage

$ docker run -d --name datastore-emulator -e DATABASE_MODE=datastore-mode -p 8080:8080 178inaba/firestore-emulator
GitHub Actions
jobs:
  test:
    runs-on: ubuntu-latest
    services:
      datastore-emulator:
        image: 178inaba/firestore-emulator
        ports:
          - "8080:8080"
        env:
          DATABASE_MODE: datastore-mode
    env:
      DATASTORE_EMULATOR_HOST: localhost:8080
    steps:
      - name: Test
        run: |
          # Replace this with running tests for your app.
          curl -f localhost:8080
Docker Compose
services:
  firestore:
    image: 178inaba/firestore-emulator
    ports:
      - "8080:8080"
    healthcheck:
      test: ['CMD', 'curl', '-f', 'localhost:8080']

  datastore:
    image: 178inaba/firestore-emulator
    ports:
      - "8081:8080"
    environment:
      DATABASE_MODE: datastore-mode
    healthcheck:
      test: ['CMD', 'curl', '-f', 'localhost:8080']

  app:
    build: .
    environment:
      FIRESTORE_EMULATOR_HOST: firestore:8080
      DATASTORE_EMULATOR_HOST: datastore:8080
    depends_on:
      firestore:
        condition: service_healthy
      datastore:
        condition: service_healthy

Environment Variables

DATABASE_MODE

The database mode to start the Firestore Emulator in.

The valid options are:

  • firestore-native (default): start the emulator in Firestore Native
  • datastore-mode: start the emulator in Datastore Mode

Source Repository

https://github.com/178inaba/gcloud-emulators

Tag summary

Content type

Image

Digest

sha256:1bfe59281

Size

437.6 MB

Last updated

6 days ago

docker pull 178inaba/firestore-emulator