docker-odoo/build.sh
2016-12-30 16:09:55 -07:00

30 lines
726 B
Bash
Executable File

#!/bin/bash
# #####
#
# Build Odoo 8.0/9.0/10.0 base+release docker container images.
#
# author: Pedro Salgado <steenzout@ymail.com>
# version: 1.0
#
# #####
for ODOO_VERSION in 8.0 9.0 10.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