This repository has been archived by the owner on Mar 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (45 loc) · 1.49 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
### SHELL ######################################################################
# Use bash as a shell
SHELL := /bin/bash
# Exit immediately if a command exits with a non-zero exit status
# TODO: .SHELLFLAGS does not exists on obsoleted macOS X-Code make
# .SHELLFLAGS = -ec
SHELL += -e
### DOCKER_VERSIONS ############################################################
# Docker image versions
DOCKER_VERSIONS ?= 6.2.2 \
6.2.2/x-pack-basic \
6.2.2/x-pack-gold \
6.2.2/x-pack-platinum
# Make targets propagated to all Docker image versions
DOCKER_VERSION_TARGETS += build \
rebuild \
ci \
clean \
docker-pull \
docker-pull-dependencies \
docker-pull-image \
docker-pull-testimage \
docker-push \
docker-load-image \
docker-save-image
### MAKE_TARGETS ###############################################################
# Build all images and run all tests
.PHONY: all
all: ci
# Subdir targets
.PHONY: $(DOCKER_VERSION_TARGETS)
$(DOCKER_VERSION_TARGETS):
@for DOCKER_VERSION in $(DOCKER_VERSIONS); do \
cd $(CURDIR)/$${DOCKER_VERSION}; \
$(MAKE) display-version-header $@; \
done
# Do docker-pull-baseimage only on pure Kibana
docker-pull-baseimage:
@for DOCKER_VERSION in $(DOCKER_VERSIONS); do \
if [[ $${DOCKER_VERSION} =~ ^[0-9]+(\.[0-9]+)*$$ ]]; then \
cd $(CURDIR)/$${DOCKER_VERSION}; \
$(MAKE) display-version-header $@; \
fi; \
done
################################################################################