chore: move emulator to folfolder

This commit is contained in:
David Germain
2024-06-07 21:40:14 +02:00
committed by benfurber
parent 4cec2c5276
commit 1929d219bb
4 changed files with 7 additions and 11 deletions

View File

@@ -5,9 +5,11 @@ services:
emulator:
build:
context: ./
dockerfile: ./functions/Dockerfile.emulator
dockerfile: ./functions/emulator/Dockerfile
ports:
- 4001-4008:4001-4008
volumes:
- ./functions:/app/functions
- ./functions/data/emulator/:/seed
- ./functions/data/emulator/:/seed
# - ./functions/logs/firestore-debug.log:/app/firestore-debug.log

View File

@@ -11,7 +11,7 @@
# therefore these commands should be ran from the root directory.
#
# BUILD
# docker build -f ./functions/Dockerfile.emulator -t emulator .
# docker build -f ./functions/emulator/Dockerfile -t emulator .
#
# RUN
# docker run -v ./functions:/app/functions -p 4001-4008:4001-4008 -it emulator
@@ -89,6 +89,7 @@ RUN mkdir /seed
# These should be the ports specified in firebase.json
EXPOSE 4001 4002 4003 4004 4005 4006 4007 4008
# Do firebase emulators:start --help for details
CMD \
firebase emulators:start \
--project demo-community-platform-emulated \

View File

@@ -1,7 +0,0 @@
The files in this folder must exist in order to be able to mount with the file inside of Docker containers.
https://stackoverflow.com/a/64821508
These files should be initially checked into Git but ignored for changes.
https://stackoverflow.com/a/17410119

View File

@@ -172,4 +172,4 @@ The `name` can be retrieved by running `docker ps`.
## Troubleshooting
See the `Dockerfile.emulator` for some debugging tips.
See the `/functions/emulator/Dockerfile` for some debugging tips.