forked from splunk/fluent-plugin-kubernetes-objects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 760 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
VERSION := $(shell sh -c 'cat VERSION')
clean_pkg:
@rm -rf pkg/* docker/*.gem
clean_gems:
@rm -rf docker/gem/ docker/gems/
clean: clean_pkg clean_gems
@rm -rf docker/licenses
build: clean_pkg
@bundle exec rake build
docker: build install-deps
@cp pkg/fluent-plugin-*.gem docker
@mkdir -p docker/licenses
@cp -rp LICENSE docker/licenses/
@docker build --no-cache --pull --build-arg VERSION=$(VERSION) -t splunk/kube-objects:$(VERSION) ./docker
unit-test:
@bundle exec rake test
install-deps:
@gem install bundler
@bundle update --bundler
@bundle install
unpack: build
@cp pkg/fluent-plugin-*.gem docker
@mkdir -p docker/gem
@rm -rf docker/gem/*
@gem unpack docker/fluent-plugin-*.gem --target docker/gem
@cd docker && bundle install