Skip to content

Commit

Permalink
Merge pull request #10 from paulfantom/glide_in_docker
Browse files Browse the repository at this point in the history
run glide in docker container
  • Loading branch information
enxebre committed Jul 19, 2018
2 parents f3d425e + db9d4d6 commit 64ad395
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ clean-images: ## Remove built images
docker rmi -f apiserverbuilderimage > /dev/null 2>&1 || true
docker rmi -f buildimage > /dev/null 2>&1 || true

.PHONY: deps
deps: .buildImage
$(DOCKER_CMD) glide install --strip-vendor
$(DOCKER_CMD) glide-vc --use-lock-file --no-tests --only-code

# Build
#######

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
## Build the controller
Update dependencies if needed:
```
glide install --strip-vendor
glide-vc --use-lock-file --no-tests --only-code
make deps
```
Then:

Expand Down
1 change: 1 addition & 0 deletions build/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ENV GLIDE_VERSION=v0.12.3 \
GLIDE_HOME=/go/src/github.com/openshift/cluster-operator/.glide
RUN curl -sSL https://github.com/Masterminds/glide/releases/download/$GLIDE_VERSION/glide-$GLIDE_VERSION-linux-amd64.tar.gz \
| tar -vxz -C /usr/local/bin --strip=1
RUN go get -u github.com/sgotti/glide-vc

# Install the golint, use this to check our source for niceness
RUN go get -u github.com/golang/lint/golint
Expand Down

0 comments on commit 64ad395

Please sign in to comment.