Fix CKAN Docker prerequisites
This commit is contained in:
parent
f07d5e746b
commit
01d93bf748
9
ckan.sh
9
ckan.sh
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user