Skip to content

Commit

Permalink
add go dep
Browse files Browse the repository at this point in the history
  • Loading branch information
irahardianto committed Oct 1, 2017
1 parent a759b44 commit 94be3be
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.glide/

./service-pattern-go
vendor/
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.9.0 as builder
WORKDIR $GOPATH/src/github.com/irahardianto/service-pattern-go/
RUN go get -u github.com/golang/dep/cmd/dep
COPY . ./
RUN $GOPATH/bin/dep ensure
RUN go build --tags service-pattern-go --ldflags '-extldflags "-lm -lstdc++ -static"'

FROM scratch
WORKDIR /root/
COPY --from=builder /go/src/github.com/irahardianto/service-pattern-go/service-pattern-go .
CMD ["./service-pattern-go"]

EXPOSE 8080
75 changes: 75 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/afex/hystrix-go"

[[constraint]]
name = "github.com/go-chi/chi"
version = "3.2.1"

[[constraint]]
name = "github.com/jinzhu/gorm"
version = "1.0.0"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.1.4"

0 comments on commit 94be3be

Please sign in to comment.