mirror of
https://github.com/valitydev/clickhouse-sink-connector.git
synced 2024-11-06 10:35:21 +00:00
32 lines
708 B
Bash
Executable File
32 lines
708 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Production docker image builder
|
|
set -e
|
|
|
|
# Source configuration
|
|
CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|
SRC_ROOT="$(realpath "${CUR_DIR}/..")"
|
|
|
|
# Externally configurable build-dependent options
|
|
TAG="${TAG:-latest}"
|
|
DOCKER_IMAGE="subkanthi/debezium-mysql-source-connector:${TAG}"
|
|
|
|
# Externally configurable build-dependent options
|
|
DOCKERFILE_DIR="${SRC_ROOT}/docker"
|
|
DOCKERFILE="${DOCKERFILE_DIR}/Dockerfile-debezium-on-strimzi-image"
|
|
|
|
echo "***************"
|
|
echo "* Build image *"
|
|
echo "***************"
|
|
DOCKER_CMD="docker build -t ${DOCKER_IMAGE} -f ${DOCKERFILE} ${SRC_ROOT}"
|
|
|
|
if ${DOCKER_CMD}; then
|
|
echo "ALL DONE"
|
|
else
|
|
echo "FAILED"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
|