Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
make: add build-in-rkt target
Browse files Browse the repository at this point in the history
  • Loading branch information
euank committed Dec 1, 2016
1 parent 8a3bcfe commit 478eb3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

.PHONY: all glide generate test clean
.PHONY: all build-in-rkt glide generate test clean

all:
go build -o bin/rktlet ./cmd/server/main.go

build-in-rkt:
sudo rkt run --uuid-file-save=/tmp/rktlet-build-uuid \
docker://golang:1.7 --insecure-options=image,ondisk \
--volume src,kind=host,source="$(shell pwd)" \
--mount volume=src,target=/go/src/github.com/kubernetes-incubator/rktlet \
--working-dir /go/src/github.com/kubernetes-incubator/rktlet \
--exec=go -- build -o bin/container/rktlet ./cmd/server/main.go

glide:
glide update --strip-vendor

Expand All @@ -27,7 +35,8 @@ test:
go test ./rktlet/... ./journal2cri/...

clean:
rm -f ./bin/rktlet ./hack/bin/mockery
rm -f ./bin/rktlet ./hack/bin/mockery ./bin/container/rktlet


MOCKERY_SOURCES := $(shell find ./vendor/github.com/vektra/mockery/ -name '*.go')
./hack/bin/mockery: $(MOCKERY_SOURCES)
Expand Down
Empty file added bin/container/.gitkeep
Empty file.

0 comments on commit 478eb3a

Please sign in to comment.