summaryrefslogtreecommitdiffstats
path: root/redhat/docker/build.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2017-07-21 22:11:22 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2017-07-21 22:11:22 +0200
commita166e45221dabbf06d176ce3186e5f52b1549a1f (patch)
tree8623343aee311fd623605b567f03e3f368ea0188 /redhat/docker/build.sh
parent90da17e79795662dbabd42c2aff692e23fa83714 (diff)
downloadtde-packaging-a166e45221dabbf06d176ce3186e5f52b1549a1f.tar.gz
tde-packaging-a166e45221dabbf06d176ce3186e5f52b1549a1f.zip
RPM packaging: add docker build scripts
Diffstat (limited to 'redhat/docker/build.sh')
-rwxr-xr-xredhat/docker/build.sh13
1 files changed, 13 insertions, 0 deletions
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}"