Skip to content

Commit

Permalink
Merge pull request #1 from HagaiBarel/migrate-to-dep
Browse files Browse the repository at this point in the history
Migrate to dep package management
  • Loading branch information
maorfr committed Oct 15, 2018
2 parents eef4651 + 0e87fd0 commit b56f42c
Show file tree
Hide file tree
Showing 6 changed files with 641 additions and 336 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM golang:1.10.3-alpine as builder
WORKDIR /go/src/github.com/maorfr/orca/
COPY . .

ARG DEP_VERSION=v0.5.0

RUN apk --no-cache add git \
&& go get -u github.com/Masterminds/glide \
&& glide install --strip-vendor \
&& wget -q -O $GOPATH/bin/dep https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 \
&& chmod +x $GOPATH/bin/dep \
&& dep ensure \
&& for f in $(find test -type f -name "*.go"); do go test -v $f; done \
&& CGO_ENABLED=0 GOOS=linux go build -o orca cmd/orca.go

Expand Down
Loading

0 comments on commit b56f42c

Please sign in to comment.