📁
GoReplay
  • Build software better, together
  • Getting-Started
  • Home
    • [PRO]-Recording-and-replaying-keep-alive-TCP-sessions
    • [PRO]-Replaying-Binary-protocols
    • [PRO]-Using-S3-for-storing-and-replaying-traffic
    • Capturing-and-replaying-traffic
    • Commercial-FAQ
    • Commercial-Support
    • Compilation
    • Dealing-with-missing-requests-and-responses
    • Development-Setup
    • Distributed-configuration
    • Exporting-to-ElasticSearch
    • FAQ
    • Middleware
    • Rate-limiting
    • Replaying-HTTP-traffic
    • Request-filtering
    • Request-rewriting
    • Running-as-non-root-user
    • Running-on-Windows
    • Saving-and-Replaying-from-file
    • Streaming-from-and-to-Apache-Kafka
    • The-Basics
    • Troubleshooting
Powered by GitBook
On this page
  • STEP 1: Install Docker
  • STEP 2: Download repository
  • STEP 3: Setup container
  • Testing
  • Building

Was this helpful?

  1. Home

Development-Setup

PreviousDealing-with-missing-requests-and-responsesNextDistributed-configuration

Last updated 4 years ago

Was this helpful?

STEP 1: Install Docker

For local development we recommend to use Docker.

If you don’t have it you can read how to install it here:

STEP 2: Download repository

git clone git@github.com:buger/goreplay.git

STEP 3: Setup container

cd ./goreplay
make build

Testing

To run tests execute next command:

make test

You can copy the command that is produced and modify it. For example, if you need to run one test copy the command and add -run TestName, e.g.:

docker run -v `pwd`:/go/src/github.com/buger/gor/ -p 0.0.0.0:8000:8000 -t -i gor:go go test ./. -run TestEmitterFiltered -timeout 60s -ldflags "-X main.VERSION=DEV-1482398347 -extldflags \"-static\""   -v

Building

To get a binary file run

make release-bin
https://docs.docker.com/engine/getstarted/step_one/#step-3-verify-your-installation