Skip to content

fix: local config #422

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

Merged
merged 2 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ web_modules/
# dotenv environment variables file
.env
.env.test
taas-es-processor.env

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,21 @@
BUSAPI_URL=http://dockerhost:8002/v5
```

- Values from this file would be automatically used by many `npm` commands.
1. In the `./local` folder create `taas-es-processor.env` file with the next environment variables.<br>

```bash
# Auth0 config
AUTH0_URL=
AUTH0_AUDIENCE=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
# Locally deployed services (via docker-compose)
KAFKA_URL=kafka:9093
ES_HOST=http://elasticsearch:9200
BUSAPI_URL=http://tc-bus-api:8002/v5
```

- Values from these file would be automatically used by many `npm` commands.
- ⚠️ Never commit this file or its copy to the repository!

1. Set `dockerhost` to point the IP address of Docker. Docker IP address depends on your system. For example if docker is run on IP `127.0.0.1` add a the next line to your `/etc/hosts` file:
Expand Down Expand Up @@ -223,7 +237,6 @@ To be able to change and test `taas-es-processor` locally you can follow the nex
| `npm run demo-payment-scheduler` | Create 1000 Work Periods Payment records in with status "scheduled" and various "amount" |
| `npm run emsi-mapping` | mapping EMSI tags to topcoder skills |


## Import and Export data

### 📤 Export data
Expand Down
5 changes: 2 additions & 3 deletions local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ services:
depends_on:
- kafka-client
- elasticsearch
environment:
- KAFKA_URL=kafka:9093
- ES_HOST=http://elasticsearch:9200
env_file:
- taas-es-processor.env

tc-bus-api:
container_name: tc-bus-api
Expand Down