forked from spotify/docker-kafka
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-suported-versions.sh
executable file
·68 lines (54 loc) · 1.71 KB
/
build-suported-versions.sh
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
#!/bin/bash
set -e
build_version=""
if [[ -n $1 ]]; then
if [ "$1" = "-h" ]; then
echo "This script builds the docker images for the supported kafka versions"
echo "The optional first positional argument specifies the subverion of the docker image used to tag the image"
echo "Example: './build-supported-versions.sh 111' will build psy3.memcompute.com/schema_kafka:2.7.0.111"
echo ""
exit
fi
build_version="$1"
echo "build_version: $build_version"
fi
build_and_tag () {
image_version="${KAFKA_VERSION}.${build_version}"
make build-kafka
docker tag memsql/kafka:latest "psy3.memcompute.com/schema_kafka:${image_version}"
if [[ "$*" == *"aio"* ]]; then
make build-kafka-aio
docker tag memsql/kafka_aio:latest "psy3.memcompute.com/schema_kafka-aio:${image_version}"
fi
if [[ "$*" == *"oauth"* ]]; then
make build-kafka-oauth
docker tag memsql/kafka_oauth:latest "psy3.memcompute.com/schema_kafka-oauth:${image_version}"
fi
}
export BASE_VERSION=$build_version
make build-kafka-base
# kafka 0.8 doesnt support saml and does not need an aio image
export KAFKA_VERSION=0.8.2.1
export SCALA_VERSION=2.10
build_and_tag
export KAFKA_VERSION=0.10.2.1
export SCALA_VERSION=2.10
build_and_tag aio
export KAFKA_VERSION=0.11.0.2
export SCALA_VERSION=2.11
build_and_tag aio
export KAFKA_VERSION=1.0.1
export SCALA_VERSION=2.11
build_and_tag aio
export KAFKA_VERSION=1.1.0
export SCALA_VERSION=2.11
build_and_tag aio
export KAFKA_VERSION=2.0.0
export SCALA_VERSION=2.11
build_and_tag aio
export KAFKA_VERSION=2.7.0
export SCALA_VERSION=2.12
build_and_tag aio
export KAFKA_VERSION=3.3.1
export SCALA_VERSION=2.13
build_and_tag oauth