mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Instead of godep just clone elasticgo repo
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
*.swp
|
||||
Godeps
|
||||
*.gor
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
language: go
|
||||
go: 1.2.1
|
||||
script: sudo -E bash -c "source /etc/profile && gvm use go1.2.1 && export GOPATH=$HOME/gopath:$GOPATH && go get github.com/tools/godep && godep go test -v"
|
||||
script: sudo -E bash -c "source /etc/profile && gvm use go1.2.1 && export GOPATH=$HOME/gopath:$GOPATH && go test -v"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
FROM google/golang
|
||||
|
||||
RUN go get github.com/tools/godep
|
||||
|
||||
WORKDIR /gopath/src/gor
|
||||
|
||||
ADD . /gopath/src/gor
|
||||
@@ -16,10 +16,10 @@ dbuild:
|
||||
docker build -t gor .
|
||||
|
||||
dtest:
|
||||
docker run -v `pwd`:/gopath/src/gor -t -i gor godep go test -v
|
||||
docker run -v `pwd`:/gopath/src/gor -t -i gor go test -v
|
||||
|
||||
drun:
|
||||
docker run -v `pwd`:/gopath/src/gor -t -i gor godep go run $(SOURCE) --input-dummy=0 --output-dummy=0 --verbose
|
||||
docker run -v `pwd`:/gopath/src/gor -t -i gor go run $(SOURCE) --input-dummy=0 --output-dummy=0 --verbose
|
||||
|
||||
dbash:
|
||||
docker run -v `pwd`:/gopath/src/gor -t -i gor /bin/bash
|
||||
@@ -197,12 +197,11 @@ https://github.com/buger/gor/releases
|
||||
```
|
||||
|
||||
## Building from source
|
||||
We use `godep` for managing dependencies, you can find instructions here: https://github.com/tools/godep. Basically it means that all `go` calls should be prefixed by `godep` command.
|
||||
|
||||
1. Setup standard Go environment http://golang.org/doc/code.html and ensure that $GOPATH environment variable properly set.
|
||||
2. `go get github.com/buger/gor`.
|
||||
3. `cd $GOPATH/src/github.com/buger/gor`
|
||||
4. `godep go build` to get binary, or `go test` to run tests
|
||||
4. `go build` to get binary, or `go test` to run tests
|
||||
|
||||
## Development
|
||||
Project contains Docker environment.
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/mattbaird/elastigo/api"
|
||||
"github.com/mattbaird/elastigo/core"
|
||||
"github.com/buger/elastigo/api"
|
||||
"github.com/buger/elastigo/core"
|
||||
"log"
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
||||
Reference in New Issue
Block a user