-
Install Docker Desktop and enable Kubernetes
-
Install Helm
-
Install NGINX Ingress Controller
-
Install Skaffold
-
Download large docker files
docker pull elasticsearch:7.17.5 docker pull kibana:7.17.5
-
Create secrets for each service
-
Add the following to your host file
sudo vim /etc/hosts
127.0.0.1 index.murmurations.developers 127.0.0.1 library.murmurations.developers 127.0.0.1 data-proxy.murmurations.developers
-
Run
make dev
to start services -
Try
GET
ting the following API endpoints to check the services are running:
- http://index.murmurations.developers/v2/ping
- http://library.murmurations.developers/v2/ping
- http://data-proxy.murmurations.developers/v1/ping
Note: Pre-commit is a linter to ensure consistent style, etc. Please use it before submitting pull requests to this repository. There is no need to install if you are not planning to submit pull requests.
-
Install pre-commit on a Mac by running
brew install pre-commit
. -
Add pre-commit file and change permission.
touch .git/hooks/pre-commit chmod +x .git/hooks/pre-commit
-
Use
vim .git/hooks/pre-commit
to edit the pre-commit file.#!/bin/sh PASS=true # Run Newman make newman-test if [[ $? != 0 ]]; then printf "\t\033[31mNewman\033[0m \033[0;30m\033[41mFAILURE!\033[0m\n" PASS=false else printf "\t\033[32mNewman\033[0m \033[0;30m\033[42mpass\033[0m\n" fi if ! $PASS; then printf "\033[0;30m\033[41mCOMMIT FAILED\033[0m\n" exit 1 else printf "\033[0;30m\033[42mCOMMIT SUCCEEDED\033[0m\n" fi exit 0
-
Run
pre-commit install
to set up the git hook scripts in your local repository. You can safely ignore the "Running in migration mode with existing hooks
" message.
Now, pre-commit will run automatically on git commit
. If you want to manually run all pre-commit hooks on a repository, run pre-commit run --all-files
.