Merge pull request #1987 from bigchaindb/storage-engine-fix-mongo-k8s

Fix error checking of optional parameter `storage-engine-cache-size`
This commit is contained in:
Ahmed Muawia Khan 2018-01-11 12:54:46 +01:00 committed by GitHub
commit f817818770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM mongo:3.4.4
FROM mongo:3.4.10
LABEL maintainer "dev@bigchaindb.com"
WORKDIR /
RUN apt-get update \

View File

@ -1,5 +1,5 @@
#!/bin/bash
docker build -t bigchaindb/mongodb:3.2 .
docker build -t bigchaindb/mongodb:3.3 .
docker push bigchaindb/mongodb:3.2
docker push bigchaindb/mongodb:3.3

View File

@ -65,9 +65,11 @@ if [[ -z "${REPLICA_SET_NAME:?REPLICA_SET_NAME not specified. Exiting!}" || \
-z "${MONGODB_IP:?MONGODB_IP not specified. Exiting!}" || \
-z "${MONGODB_KEY_FILE_PATH:?MONGODB_KEY_FILE_PATH not specified. Exiting!}" || \
-z "${MONGODB_CA_FILE_PATH:?MONGODB_CA_FILE_PATH not specified. Exiting!}" || \
-z "${MONGODB_CRL_FILE_PATH:?MONGODB_CRL_FILE_PATH not specified. Exiting!}" || \
-z ${STORAGE_ENGINE_CACHE_SIZE:=''} ]] ; then
#-z "${MONGODB_KEY_FILE_PASSWORD:?MongoDB Key File Password not specified. Exiting!}" || \
-z "${MONGODB_CRL_FILE_PATH:?MONGODB_CRL_FILE_PATH not specified. Exiting!}" ]] ; then
# Not handling the STORAGE_ENGINE_CACHE_SIZE because
# it is optional. If not specified the default cache
# size is: max((50% RAM - 1GB), 256MB)
echo "Missing required enviroment variable(s)."
exit 1
else
echo REPLICA_SET_NAME="$REPLICA_SET_NAME"