Skip to content

Commit

Permalink
changing namespaces, adding Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yaman committed Apr 21, 2015
1 parent 2d752a2 commit d5f3ed1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .godir
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github.com/abdulkadiryaman/go-hamms
github.com/yaman/timeout
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.4.2
MAINTAINER Abdulkadir Yaman <abdulkadiryaman@gmail.com>

RUN mkdir /tmp/gopath
ENV GOPATH /tmp/gopath

RUN go get github.com/yaman/timeout

EXPOSE $PORT

ENTRYPOINT ${GOPATH}/bin/timeout -proto=$PROTO -port=$PORT

4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"time"

"github.com/abdulkadiryaman/timeout/http"
"github.com/abdulkadiryaman/timeout/tcp"
"github.com/yaman/timeout/http"
"github.com/yaman/timeout/tcp"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tcp/timeout_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"time"

"github.com/abdulkadiryaman/timeout/timeout"
"github.com/yaman/timeout/timeout"
)

func ListenAndDoNotAnswer() {
Expand Down
2 changes: 1 addition & 1 deletion tcp/timeout_tcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net"
"time"

"github.com/abdulkadiryaman/timeout/timeout"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/yaman/timeout/timeout"
)

var _ = Describe("Timeout", func() {
Expand Down

0 comments on commit d5f3ed1

Please sign in to comment.