forked from confluentinc/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·23 lines (19 loc) · 852 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
. settings.sh
for SCALA_VERSION in ${SCALA_VERSIONS}; do
echo "Building confluent-platform-${SCALA_VERSION}"
cp confluent-platform/Dockerfile confluent-platform/Dockerfile.${SCALA_VERSION}
sed -i "s/ENV SCALA_VERSION=.*/ENV SCALA_VERSION=\"${SCALA_VERSION}\"/" confluent-platform/Dockerfile.${SCALA_VERSION}
TAGS="confluent/platform-${SCALA_VERSION}"
if [ "x$SCALA_VERSION" = "x$DEFAULT_SCALA_VERSION" ]; then
TAGS="$TAGS confluent/platform"
fi
for TAG in ${TAGS}; do
docker build -t $TAG -f confluent-platform/Dockerfile.${SCALA_VERSION} confluent-platform/
done
done
docker build -t confluent/zookeeper zookeeper/
docker build -t confluent/kafka kafka/
docker build -t confluent/schema-registry schema-registry/
docker build -t confluent/rest-proxy rest-proxy/
docker build -t confluent/tools tools/