Use local checkout

This commit is contained in:
Peter Bourgon
2015-09-10 16:58:49 +02:00
parent dde214c103
commit b97407a540
4 changed files with 10 additions and 15 deletions

2
.gitignore vendored
View File

@@ -52,5 +52,3 @@ experimental/_integration/_integration
*sublime-project
*sublime-workspace
*npm-debug.log
backend/scope-app
backend/scope-probe

View File

@@ -77,11 +77,9 @@ $(SCOPE_UI_BUILD_EXPORT): client/Dockerfile client/package.json client/webpack.l
docker build -t $(SCOPE_UI_BUILD_IMAGE) client
docker save $(SCOPE_UI_BUILD_IMAGE):latest > $@
# backend is an alternate Docker-based method to produce APP_EXE and PROBE_EXE
backend:
docker build -t $(SCOPE_BACKEND_BUILD_IMAGE) backend
docker run -ti -v $(shell pwd)/app:/mount $(SCOPE_BACKEND_BUILD_IMAGE) cp /go/bin/scope-app /mount
docker run -ti -v $(shell pwd)/probe:/mount $(SCOPE_BACKEND_BUILD_IMAGE) cp /go/bin/scope-probe /mount
docker run -ti -v $(shell pwd):/go/src/github.com/weaveworks/scope $(SCOPE_BACKEND_BUILD_IMAGE) /build.bash
clean:
go clean ./...

View File

@@ -1,5 +1,4 @@
FROM golang:1.5.1
RUN apt-get update && apt-get install -y libpcap-dev
COPY build.bash /
RUN /build.bash

View File

@@ -1,12 +1,12 @@
#!/bin/bash
mkdir -p /go/src/github.com/weaveworks
cd /go/src/github.com/weaveworks
git clone https://github.com/weaveworks/scope
cd scope
make deps
SUDO= make app/scope-app
mv app/scope-app $GOPATH/bin
SUDO= make probe/scope-probe
mv probe/scope-probe $GOPATH/bin
set -x
# Mount the scope repo:
# -v $(pwd):/go/src/github.com/weaveworks/scope
cd /go/src/github.com/weaveworks/scope
make deps
make app/scope-app
make probe/scope-probe