Check prerequisites at the start of install script

This commit is contained in:
Disassembler 2018-01-23 21:27:18 +01:00
parent cc850a8b34
commit aef583ebad
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
10 changed files with 38 additions and 0 deletions

View File

@ -2,6 +2,13 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan
# Check prerequisites
SCRIPT_DIR=$(realpath $(dirname "${0}"))
docker image ls | grep -q ckan-datapusher || ${SCRIPT_DIR}/ckan-datapusher.sh
docker image ls | grep -q postgres || ${SCRIPT_DIR}/postgres.sh
docker image ls | grep -q redis || ${SCRIPT_DIR}/redis.sh
docker image ls | grep -q solr || ${SCRIPT_DIR}/solr.sh
# Build Docker container
docker build -t ckan ${SOURCE_DIR}

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/crisiscleanup
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container
docker build -t crisiscleanup ${SOURCE_DIR}

3
cts.sh
View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/cts
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container
docker build -t cts ${SOURCE_DIR}

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/gnuhealth
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container
docker build -t gnuhealth ${SOURCE_DIR}

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/kanboard
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container
docker build -t kanboard ${SOURCE_DIR}

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/mifosx
# Check prerequisites
docker image ls | grep -q mariadb || $(realpath $(dirname "${0}"))/mariadb.sh
# Build Docker container
docker build -t mifosx ${SOURCE_DIR}

View File

@ -2,6 +2,11 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/motech
# Check prerequisites
SCRIPT_DIR=$(realpath $(dirname "${0}"))
docker image ls | grep -q activemq || ${SCRIPT_DIR}/activemq.sh
docker image ls | grep -q postgres || ${SCRIPT_DIR}/postgres.sh
# Build Docker container
docker build -t motech ${SOURCE_DIR}

View File

@ -2,6 +2,11 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/pandora
# Check prerequisites
SCRIPT_DIR=$(realpath $(dirname "${0}"))
docker image ls | grep -q rabbitmq || ${SCRIPT_DIR}/rabbitmq.sh
docker image ls | grep -q postgres || ${SCRIPT_DIR}/postgres.sh
# Build Docker container
docker build -t pandora ${SOURCE_DIR}

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/seeddms
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container
docker build -t seeddms ${SOURCE_DIR}

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/sigmah
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Install dependencies
apt-get -y --no-install-recommends install python-bcrypt