Fix CKAN Docker prerequisites

This commit is contained in:
Disassembler 2018-01-26 21:58:55 +01:00
parent f07d5e746b
commit 01d93bf748
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -3,11 +3,10 @@
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
docker image ls | grep -q ckan-datapusher || $(realpath $(dirname "${0}"))/ckan-datapusher.sh
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
docker image ls | grep -q redis || $(realpath $(dirname "${0}"))/redis.sh
docker image ls | grep -q solr || $(realpath $(dirname "${0}"))/solr.sh
# Build Docker container
docker build -t ckan ${SOURCE_DIR}