mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2026-01-04 07:54:27 +00:00
chore: move emulator to folfolder
This commit is contained in:
@@ -5,9 +5,11 @@ services:
|
|||||||
emulator:
|
emulator:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: ./functions/Dockerfile.emulator
|
dockerfile: ./functions/emulator/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- 4001-4008:4001-4008
|
- 4001-4008:4001-4008
|
||||||
volumes:
|
volumes:
|
||||||
- ./functions:/app/functions
|
- ./functions:/app/functions
|
||||||
- ./functions/data/emulator/:/seed
|
- ./functions/data/emulator/:/seed
|
||||||
|
|
||||||
|
# - ./functions/logs/firestore-debug.log:/app/firestore-debug.log
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
# therefore these commands should be ran from the root directory.
|
# therefore these commands should be ran from the root directory.
|
||||||
#
|
#
|
||||||
# BUILD
|
# BUILD
|
||||||
# docker build -f ./functions/Dockerfile.emulator -t emulator .
|
# docker build -f ./functions/emulator/Dockerfile -t emulator .
|
||||||
#
|
#
|
||||||
# RUN
|
# RUN
|
||||||
# docker run -v ./functions:/app/functions -p 4001-4008:4001-4008 -it emulator
|
# 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
|
# These should be the ports specified in firebase.json
|
||||||
EXPOSE 4001 4002 4003 4004 4005 4006 4007 4008
|
EXPOSE 4001 4002 4003 4004 4005 4006 4007 4008
|
||||||
|
|
||||||
|
# Do firebase emulators:start --help for details
|
||||||
CMD \
|
CMD \
|
||||||
firebase emulators:start \
|
firebase emulators:start \
|
||||||
--project demo-community-platform-emulated \
|
--project demo-community-platform-emulated \
|
||||||
@@ -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
|
|
||||||
@@ -172,4 +172,4 @@ The `name` can be retrieved by running `docker ps`.
|
|||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
See the `Dockerfile.emulator` for some debugging tips.
|
See the `/functions/emulator/Dockerfile` for some debugging tips.
|
||||||
|
|||||||
Reference in New Issue
Block a user