Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Allow volume to be passed with data to be imported #46

Open
guneemwelloeux opened this issue Sep 19, 2023 · 1 comment

Comments

@guneemwelloeux
Copy link

The Firebase emulators (Auth, Firestore and Storage in particular) allow data to be saved to a local folder upon exit, and imported at startup. This allows one to re-start the emulators with some data already populated.

It would be great for the Dockerfile to allow a volume to be attached, and read data from there, as is done in this other image, for example: https://github.com/SpineEventEngine/gcp-emulators/tree/master/firebase-emulator#provide-emulators-baseline-data

@ljacomin-fsl
Copy link

You can do it like this to start with data:

services:
  emulators:
    image: andreysenov/firebase-tools
    volumes:
      - ./firebase.json:/home/node/firebase.json
      - ./data:/home/node/data
    command: /bin/bash -c "firebase emulators:start --import /home/node/data/firebase-emulator-data"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants