-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (75 loc) · 3.38 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.PHONY: all
all: all-alpine all-centos all-rhel all-ubuntu
.PHONY: all-centos
all-centos: sshd-service-centos6 sshd-service-centos7 cli-rhea-centos7 cli-proton-python-centos7 qpid-dispatch-centos7
.PHONY: all-rhel
all-rhel: sshd-service-rhel6 sshd-service-rhel7
.PHONY: all-alpine
all-centos: cli-rhea-alpine cli-java-alpine
.PHONY: all-ubuntu
all-ubuntu: qpid-dispatch-ubuntu
.PHONY: all-debian
all-debian: cli-java-debian
.PHONY: clients
clients: cli-rhea-centos7 cli-rhea-alpine cli-proton-python-centos7 cli-java-alpine cli-java-debian
.PHONY: routers
routers: qpid-dispatch
.PHONY: brokers
brokers: artemis
.PHONY: sshd-service
sshd-service: sshd-service-centos6 sshd-service-centos7
sshd-service-centos6:
docker build -t rhmessagingqe/sshd-service:centos6 sshd-service/centos6
sshd-service-centos7:
docker build -t rhmessagingqe/sshd-service:centos7 sshd-service/centos7
sshd-service-rhel6:
docker build -t rhmessagingqe/sshd-service:rhel6 sshd-service/rhel6
sshd-service-rhel7:
docker build -t rhmessagingqe/sshd-service:rhel7 sshd-service/rhel7
.PHONY: proton-lib
proton-lib: proton-lib-centos7
proton-lib-centos7:
docker build -t rhmessagingqe/proton-lib:centos7 clients/proton-lib/centos7
cli-proton-python: cli-proton-python-centos7
cli-proton-python-centos7: proton-lib-centos7
docker build -t rhmessagingqe/cli-proton-python:centos7 clients/cli-proton-python/centos7
cli-rhea-centos7:
docker build -t rhmessagingqe/cli-rhea:centos7 clients/cli-rhea/centos7
cli-rhea-alpine:
docker build -t rhmessagingqe/cli-rhea:alpine clients/cli-rhea/alpine
cli-java-build:
docker build -t cli-java-build clients/cli-java/_build
docker run --name cli-java-build --rm -tid cli-java-build sh -c 'sleep 30'
docker cp cli-java-build:/cli-qpid.jar clients/cli-java/cli-qpid.jar
docker cp cli-java-build:/cli-artemis.jar clients/cli-java/cli-artemis.jar
docker cp cli-java-build:/cli-paho.jar clients/cli-java/cli-paho.jar
docker cp cli-java-build:/cli-activemq.jar clients/cli-java/cli-activemq.jar
docker cp cli-java-build:/VERSION.txt clients/cli-java/VERSION.txt
.PHONY: cli-java
cli-java: cli-java-build cli-java-alpine
cli-java-alpine: cli-java-build
mkdir -p clients/cli-java/alpine/clients
cp clients/cli-java/cli-* clients/cli-java/alpine/clients
docker build -t rhmessagingqe/cli-java:alpine clients/cli-java/alpine
cli-java-debian: cli-java-build
mkdir -p clients/cli-java/debian/clients
cp clients/cli-java/cli-*.jar clients/cli-java/debian/clients
docker build -t rhmessagingqe/cli-java:debian clients/cli-java/debian
.PHONY: qpid-dispatch
qpid-dispatch: qpid-dispatch-ubuntu qpid-dispatch-centos7
qpid-dispatch-ubuntu:
docker build -t rhmessagingqe/qpid-dispatch:ubuntu1804 routers/qdrouterd/ubuntu1804
qpid-dispatch-centos7: proton-lib-centos7
docker build -t rhmessagingqe/qpid-dispatch:centos7 routers/qdrouterd/centos7
.PHONY: artemis
artemis: artemis-fedora27 artemis-fedora30 artemis-centos7
artemis-fedora27:
docker build -t rhmessagingqe/artemis:2.7.0-fedora27 --build-arg artemis_version=2.7.0 brokers/artemis/fedora27
artemis-fedora30:
docker build -t rhmessagingqe/artemis:2.10.0-fedora30 --build-arg artemis_version=2.10.0 brokers/artemis/fedora30
artemis-centos7:
docker build -t rhmessagingqe/artemis:centos7 brokers/artemis/centos7
.PHONY: clean
rm -f clients/cli-java/cli-*.jar clients/cli-java/VERSION.txt
rm -f clients/cli-java/alpine/clients
rm -f clients/cli-java/debian/clients