From dd3e751a64c72f2fbd82507c5cda90d6abf417aa Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Fri, 30 Dec 2016 14:46:18 -0700 Subject: [PATCH] build.sh: added script to build docker container images. --- build.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..19b3c95 --- /dev/null +++ b/build.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# ##### +# +# Build Odoo 8.0/9.0/10.0 base+release docker container images. +# +# author: Pedro Salgado +# version: 1.0 +# +# ##### + +for ODOO_VERSION in 9.0 +do + + echo "building steenzout/odoo:${ODOO_VERSION}-base..." + docker build -t "steenzout/odoo:${ODOO_VERSION}-base" -f "${ODOO_VERSION}/base/Dockerfile" . + + for line in `cat "${ODOO_VERSION}/releases.txt"` + do + + IFS=':' read -a line_array <<< "$line" + ODOO_RELEASE="${line_array[0]}" + ODOO_SHA1SUM="${line_array[1]}" + + echo "building steenzout/odoo:${ODOO_VERSION}.${ODOO_RELEASE}..." + + docker build -t "steenzout/odoo:${ODOO_VERSION}.${ODOO_RELEASE}" -f "${ODOO_VERSION}/${ODOO_RELEASE}/Dockerfile" . + + done +done