/memphis-dockerless

How to run memphis.dev without docker

Primary LanguageProcfile

Memphis.dev dockerless

Helps to run memphis.dev locally without docker.

Requirements

  • Go version 1.19+ (I used 1.20.3).
  • Recent PostgreSQL (I used 14.7).
  • Procfile process manager. hivemind, overmind (requires tmux) or foreman

Setup

  1. Create PostreSQL db for memphis:
createdb memphis
  1. Copy and edit memphis env variables config. Look at METADATA_DB_USER:
cp .env.template .env
  1. Copy and edit rest gateway config:
cp conf/config.json.template conf/config.json

Build memphis

cd ~/
git clone https://github.com/memphisdev/memphis.git
cd memphis
CGO_ENABLED=0 go build -ldflags="-w" -a -o .
cp memphis ~/memphis-dockerless/nats-server

Build rest-gateway

cd ~/
git clone https://github.com/memphisdev/memphis-rest-gateway.git
cd memphis-rest-gateway
CGO_ENABLED=0 go build -ldflags="-w" -a -o .
cp rest-gateway ~/memphis-dockerless/rest-gateway

Run everything

overmind start