Configs and setup for running the services locally.
- Create new or obtain existing Reddit credentials (required by the dispatcher)
- Create a
.env
file (example):REDDIT_CLIENT_ID=<value> REDDIT_CLIENT_SECRET=<value> MONGO_INITDB_ROOT_USERNAME=<value> MONGO_INITDB_ROOT_PASSWORD=<value> MONGO_CONNECTION_STRING=<value> DISPATCHER_BRANCH=main COMMENT_BRANCH=main SUBMISSION_BRANCH=main
docker version >=23.0.0
Run the services in docker:
make docker-up
Note that
Tiltfile
references the helm chart and the docker build path locally, so please make sure the repos below are pulled at the same level as this repo and are up to date:
dispatcher-service
comment-service
submission-service
<-- not yet, but soonhelm-charts
Run Tilt in a KIND cluster:
make tilt-up
This will start tilt in the foreground. Stopping it with Ctrl-c will stop
Tilt but won't delete the KIND cluster. Run make tilt-down
to delete
cluster or just leave it to be reused next time to run make tilt-up
.
You can of course still run any tilt
commands (like tilt up
or tilt down
) in the tilt/
folder.