Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
test-out
internal/hotbackup/testdata/backup
mongodb-backup-admin
mongodb-backup-agent
mongodb-backupd
vendor
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "vendor/github.com/globalsign/mgo"]
path = vendor/github.com/globalsign/mgo
url = https://github.com/timvaillancourt/mgo
12 changes: 9 additions & 3 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
ARG GOLANG_DOCKERHUB_TAG
FROM golang:$GOLANG_DOCKERHUB_TAG

RUN wget https://repo.percona.com/apt/percona-release_0.1-7.stretch_all.deb && dpkg -i percona-release_0.1-7.stretch_all.deb
RUN apt-get update && apt-get install -y percona-server-mongodb-36-server


WORKDIR /go/src/github.com/percona/mongodb-backup
COPY . .
RUN chown -R mongod.mongod /go
COPY --chown=mongod:mongod . .

RUN go get ./...
CMD make $TEST_FULL_TARGET
USER mongod
RUN make vendor
CMD make test
294 changes: 294 additions & 0 deletions Gopkg.lock

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

52 changes: 52 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[[constraint]]
name = "github.com/alecthomas/kingpin"
version = "2.2.6"

[[constraint]]
name = "github.com/aws/aws-sdk-go"
version = "1.15.17"

## Flip this to globalsign/mgo development branch after the following PRs are merged
# 1. https://github.com/globalsign/mgo/pull/243
# 2. https://github.com/globalsign/mgo/pull/244
# 3. https://github.com/globalsign/mgo/pull/248
[[constraint]]
branch = "development"
name = "github.com/globalsign/mgo"
source = "github.com/timvaillancourt/mgo"

[[constraint]]
name = "github.com/golang/mock"
version = "1.1.1"

[[constraint]]
name = "github.com/golang/protobuf"
version = "1.2.0"

[[constraint]]
name = "github.com/mongodb/mongo-tools"
version = "r3.6.7"

[[constraint]]
branch = "master"
name = "github.com/otiai10/copy"

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

[[constraint]]
name = "github.com/theckman/go-flock"
version = "0.5.0"

[[constraint]]
branch = "master"
name = "golang.org/x/net"

[[constraint]]
name = "google.golang.org/grpc"
version = "1.14.0"

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