-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
53 lines (48 loc) · 1.19 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
# default target
all: help
# include an overrides file, which sets up default values and allows user overrides
include overrides.mk
# variables
BASE_IMAGE_PACKAGES=acl \
gnutls \
device-mapper-multipath \
e2fsprogs \
gnutls \
gzip \
hostname \
kmod \
libaio \
libblockdev \
libuuid \
libxcrypt-compat \
nettle \
nfs-utils \
nfs4-acl-tools \
numactl \
openssl \
rpm \
systemd \
tar \
util-linux \
which \
xfsprogs
# Help target, prints useful information
help:
@echo
@echo "The following targets are commonly used:"
@echo
@echo "docker - Builds the container image"
@echo
# Clean the build
clean:
rm -f core/core_generated.go
rm -f semver.mk
go clean
# Generates the docker container (but does not push)
docker:
$(eval include config/csm-common.mk)
$(eval include semver.mk)
@echo "Building base image from $(DEFAULT_BASEIMAGE) and loading dependencies..."
cd base-image && ./build-base-image.sh -u $(DEFAULT_BASEIMAGE) -t $(REGISTRY)/$(IMAGENAME):$(IMAGETAG) $(BASE_IMAGE_PACKAGES)
$(eval BASEIMAGE=$(REGISTRY)/$(IMAGENAME):$(IMAGETAG))
@echo "Built base image: $(BASEIMAGE)"