Skip to content

docker compose & kubernetes setup - local and otherwise

License

Notifications You must be signed in to change notification settings

flam-flam/dev-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configs and setup for running the services locally.

Secrets

  1. Create new or obtain existing Reddit credentials (required by the dispatcher)
  2. 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 compose

Prerequisites

docker version >=23.0.0

Usage

Run the services in docker:

make docker-up

Tilt

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 soon
  • helm-charts

Prerequisites

Tilt >=v0.32.0

KIND >=v0.14.0

Usage

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.

About

docker compose & kubernetes setup - local and otherwise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published