Skip to content

Commit

Permalink
BDI-11|Mohan|Add| Build script for Odoo Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Sep 17, 2021
1 parent 1c48050 commit 57b045b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bahmni-docker/build_scripts/bahmni-erp/docker_build.sh
@@ -0,0 +1,15 @@
#!/bin/bash
set -xe

#Fetching Database Backup Data
gunzip -f -k emr-functional-tests/dbdump/odoo_backup.sql.gz
cp emr-functional-tests/dbdump/odoo_backup.sql bahmni-package/bahmni-erp/resources/odoo_demo_dump.sql

cd bahmni-package/bahmni-erp
# Unzipping Odoo Modules copied by CI
unzip -q -u -d build/ resources/odoo-modules.zip
#Building Docker images
ODOO_IMAGE_TAG=${BAHMNI_VERSION}-${GO_PIPELINE_COUNTER}
docker build -t bahmni/odoo-10-db:fresh-${ODOO_IMAGE_TAG} -f docker/db.Dockerfile . --no-cache
docker build -t bahmni/odoo-10-db:demo-${ODOO_IMAGE_TAG} -f docker/demodb.Dockerfile . --no-cache
docker build -t bahmni/odoo-10:${ODOO_IMAGE_TAG} -f docker/Dockerfile . --no-cache

0 comments on commit 57b045b

Please sign in to comment.