-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathMakefile
53 lines (48 loc) · 862 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY=(all build reconfigure)
ifeq ($(shell uname -s),Darwin)
SED=sed -i ''
else
SED=sed -i
endif
OVS_VERSIONS = \
"1.4.6" \
"1.5.0" \
"1.6.1" \
"1.7.0" \
"1.7.1" \
"1.7.2" \
"1.7.3" \
"1.9.0" \
"1.9.3" \
"1.10.0" \
"1.10.2" \
"1.11.0" \
"2.0" \
"2.0.1" \
"2.0.2" \
"2.1.0" \
"2.1.1" \
"2.1.2" \
"2.1.3" \
"2.3" \
"2.3.1" \
"2.3.2" \
"2.4.0"
all: reconfigure build
reconfigure:
for v in ${OVS_VERSIONS} ; do \
echo "====> Reconfiguring $$v" ; \
rm -r $$v ; \
mkdir -p $$v ; \
cp supervisord.conf $$v/ ; \
cp configure-ovs.sh $$v/ ; \
cp Dockerfile $$v/ ; \
args="s/$(shell cat latest)/$$v/g" ; \
cmd="${SED} $$args $$v/Dockerfile" ; \
eval $$cmd ; \
done
build:
for v in ${OVS_VERSIONS} ; do \
echo "====> Building socketplane/openvswitch:$$v" ; \
docker build -t socketplane/openvswitch:$$v $$v ; \
done