Skip to content

Commit

Permalink
add package management (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonx authored Apr 16, 2018
1 parent 6dcdb2a commit 599bfa3
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ splunk-logging-plugin
splunk-logging-plugin.tar.gz
.idea/
.DS_Store
*.pyc
*.pyc
vendor/
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ WORKDIR /go/src/github.com/splunk/splunk-logging-plugin/

COPY . /go/src/github.com/splunk/splunk-logging-plugin/

# install dep
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

RUN cd /go/src/github.com/splunk/splunk-logging-plugin && go get
RUN cd /go/src/github.com/splunk/splunk-logging-plugin && dep ensure

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /bin/splunk-logging-plugin .

Expand Down
162 changes: 162 additions & 0 deletions Gopkg.lock

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

54 changes: 54 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/Sirupsen/logrus"
version = "1.0.5"

[[constraint]]
name = "github.com/docker/docker"
version = "17.3.0-ce"

[[constraint]]
branch = "master"
name = "github.com/docker/go-plugins-helpers"

[[constraint]]
name = "github.com/gogo/protobuf"
version = "1.0.0"

[[constraint]]
name = "github.com/pkg/errors"
version = "0.8.0"

[[constraint]]
branch = "master"
name = "github.com/tonistiigi/fifo"

[prune]
go-tests = true
unused-packages = true

0 comments on commit 599bfa3

Please sign in to comment.