chore: move emulator stuff to the root folder

This commit is contained in:
David Germain
2024-06-28 19:42:42 +02:00
committed by benfurber
parent 48b8f0943b
commit c15041dbf0
6 changed files with 6 additions and 6 deletions

View File

@@ -6,20 +6,20 @@ services:
container_name: backend
build:
context: ./
dockerfile: ./functions/emulator/Dockerfile
dockerfile: ./emulator/Dockerfile
depends_on:
simulated-webhook-receiver:
condition: service_healthy
ports:
- 4001-4008:4001-4008
volumes:
- ./emulator/logs:/app/logs
- ./functions:/app/functions
- ./functions/data/emulator:/seed
- ./functions/logs:/app/logs
- ./functions/src/emailNotifications/templates:/templates
simulated-webhook-receiver:
container_name: simulated-webhook-receiver
build:
context: ./packages/simulated-webhook-receiver/
context: ./packages/simulated-webhook-receiver
dockerfile: Dockerfile

View File

@@ -15,7 +15,7 @@
# therefore these commands should be ran from there.
#
# BUILD
# docker build -f ./functions/emulator/Dockerfile -t emulator .
# docker build -f ./emulator/Dockerfile -t emulator .
#
# RUN
# docker run -v ./functions:/app/functions -p 4001-4008:4001-4008 -it emulator
@@ -86,9 +86,9 @@ COPY ./firebase.storage.rules ./firebase.storage.rules
COPY ./firestore.indexes.json ./firestore.indexes.json
COPY ./firestore.rules ./firestore.rules
COPY ./functions/emulator/export.js ./export.js
COPY ./emulator/export.js ./export.js
COPY ./functions/emulator/link-logs.js ./link-logs.js
COPY ./emulator/link-logs.js ./link-logs.js
# This folder needs to exist because otherwise
# the emulators error if the user did not mount