From a166e45221dabbf06d176ce3186e5f52b1549a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Fri, 21 Jul 2017 22:11:22 +0200 Subject: RPM packaging: add docker build scripts --- redhat/docker/build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 redhat/docker/build.sh (limited to 'redhat/docker/build.sh') diff --git a/redhat/docker/build.sh b/redhat/docker/build.sh new file mode 100755 index 000000000..9c5653d26 --- /dev/null +++ b/redhat/docker/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +DISTRIB="$1" +TDE_VERSION="$2" +ARCH="$3" + +[ -z "${TDE_VERSION}" ] && TDE_VERSION="14.0.4" +[ -z "${ARCH}" ] && ARCH="x86_64" + +IMAGE="trinity.${DISTRIB}.${ARCH}:${TDE_VERSION}" + +docker rmi -f "${IMAGE}" +docker build -t "${IMAGE}" --build-arg TDE_VERSION="${TDE_VERSION}" --build-arg ARCH="${ARCH}" "${DISTRIB}" -- cgit v1.2.1