This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from eHealthAfrica/wip/translate-to-jobs
translate to jobs consumer
- Loading branch information
Showing
30 changed files
with
2,572 additions
and
705 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Submodule aether-bootstrap
deleted from
a11ef4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
// Existing firebase configuration ... | ||
"database": { | ||
// "rules": "database.rules.json" | ||
}, | ||
"firestore": { | ||
// "rules": "firestore.rules" | ||
}, | ||
|
||
// ... | ||
|
||
// Optional emulator configuration. Default | ||
// values are used if absent. | ||
"emulators": { | ||
"firestore": { | ||
"host": "0.0.0.0" | ||
}, | ||
// "functions": { | ||
// "port": "5001" | ||
// }, | ||
"database": { | ||
// "port": "9000" | ||
"host": "0.0.0.0" | ||
} | ||
// "pubsub": { | ||
// "port": "8085" | ||
// } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,48 @@ | ||
version: "2.1" | ||
services: | ||
|
||
firebases-consumer-test: | ||
# ------------------------------------- | ||
# Firebase Eumulator | ||
# ------------------------------------- | ||
|
||
emu: | ||
image: ehealthafrica/firebase-emulator:latest | ||
container_name: firebase_emulator | ||
volumes: | ||
# Change the Firebase configuration by mounting a local firebase.json | ||
- ./conf/test-firebase.json:/app/firebase.json | ||
ports: | ||
- 5001:5001 # Cloud functions | ||
- 9000:9000 # RTDB | ||
- 8080:8080 # Cloud Firestore | ||
- 8085:8085 # Cloud pub/sub | ||
- 5000:5000 # Hosting | ||
entrypoint: | ||
["firebase", "emulators:start"] | ||
|
||
consumer-test: | ||
extends: | ||
file: docker-compose-base.yml | ||
service: firebases-consumer | ||
networks: | ||
- test_net | ||
|
||
networks: | ||
test_net: | ||
external: | ||
name: aether_test | ||
service: firebase-consumer | ||
environment: | ||
# consumer settings | ||
CONSUMER_NAME: 'FB-TEST' | ||
TENANCY_HEADER: x-oauth-realm | ||
# firebase emulator settings | ||
FIRESTORE_EMULATOR_HOST: emu:8080 | ||
FIREBASE_DATABASE_EMULATOR_HOST: emu:9000 | ||
# redis | ||
REDIS_PASSWORD: password | ||
# kafka settings | ||
KAFKA_CONFIG_PATH: /code/conf/consumer/kafka.json | ||
KAFKA_URL: ${KAFKA_URL} | ||
SECURITY.PROTOCOL: SASL_SSL | ||
SASL.MECHANISM: PLAIN | ||
SASL.USERNAME: ${KAFKA_SASL_USERNAME} | ||
SASL.PASSWORD: ${KAFKA_SASL_PASSWORD} | ||
|
||
redis: | ||
image: redis:alpine | ||
command: > | ||
redis-server | ||
--requirepass password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
version: "2.1" | ||
services: | ||
|
||
firebase-consumer: | ||
consumer: | ||
extends: | ||
file: docker-compose-base.yml | ||
service: firebase-consumer | ||
networks: | ||
- aether | ||
volumes: | ||
- ${AETHER_FB_CREDENTIAL_PATH}:/opt/firebase/cert.json | ||
ports: | ||
- "${AETHER_FB_EXPOSE_PORT}:${AETHER_FB_EXPOSE_PORT}" | ||
- 9013:9013 | ||
environment: | ||
# consumer settings | ||
CONSUMER_NAME: 'FB-TEST' | ||
TENANCY_HEADER: x-oauth-realm | ||
# redis | ||
REDIS_DB: 0 | ||
REDIS_HOST: redis | ||
REDIS_PORT: 6379 | ||
REDIS_PASSWORD: password | ||
# kafka settings | ||
KAFKA_CONFIG_PATH: /code/conf/consumer/kafka.json | ||
KAFKA_URL: ${KAFKA_URL} | ||
SECURITY.PROTOCOL: SASL_SSL | ||
SASL.MECHANISM: PLAIN | ||
SASL.USERNAME: ${KAFKA_SASL_USERNAME} | ||
SASL.PASSWORD: ${KAFKA_SASL_PASSWORD} | ||
|
||
networks: | ||
aether: | ||
external: | ||
name: aether_internal | ||
redis: | ||
image: redis:alpine | ||
command: > | ||
redis-server | ||
--requirepass password | ||
--appendonly yes | ||
--auto-aof-rewrite-percentage 100 | ||
--auto-aof-rewrite-min-size 64mb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.