mirror of
https://github.com/bitnami/containers.git
synced 2026-03-12 06:48:14 +08:00
config: move default config var to Dockerfile
This commit is contained in:
@@ -18,6 +18,14 @@ RUN bitnami-pkg unpack parse-2.3.2-0 --checksum b9e547f7ecf8cf3ece7ff96616e2983b
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
ENV PARSE_PORT="1337" \
|
||||
PARSE_HOST="127.0.0.1" \
|
||||
PARSE_MOUNT_PATH="/parse" \
|
||||
PARSE_APP_ID="myappID" \
|
||||
PARSE_MASTER_KEY="mymasterKey" \
|
||||
MONGODB_HOST="mongodb" \
|
||||
MONGODB_PORT="27017"
|
||||
|
||||
VOLUME ["/bitnami/parse"]
|
||||
|
||||
EXPOSE 1337
|
||||
|
||||
@@ -14,15 +14,6 @@ function initialize {
|
||||
fi
|
||||
}
|
||||
|
||||
# Set default values
|
||||
export PARSE_PORT=${PARSE_PORT:-"1337"}
|
||||
export PARSE_HOST=${PARSE_HOST:-"127.0.0.1"}
|
||||
export PARSE_MOUNT_PATH=${PARSE_MOUNT_PATH:-"/parse"}
|
||||
export PARSE_APP_ID=${PARSE_APP_ID:-"myappID"}
|
||||
export PARSE_MASTER_KEY=${PARSE_MASTER_KEY:-"mymasterKey"}
|
||||
export MONGODB_HOST=${MONGODB_HOST:-"mongodb"}
|
||||
export MONGODB_PORT=${MONGODB_PORT:-"27017"}
|
||||
|
||||
|
||||
|
||||
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user