4.0.27-debian-9-r1 release
This commit is contained in:
parent
ee6a8621c6
commit
3159f0bcaa
|
|
@ -22,7 +22,7 @@ RUN ln -s /opt/bitnami/scripts/mongodb-sharded/run.sh /run.sh
|
|||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/mongodb-sharded/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="mongodb-sharded" \
|
||||
BITNAMI_IMAGE_VERSION="4.0.27-debian-9-r0" \
|
||||
BITNAMI_IMAGE_VERSION="4.0.27-debian-9-r1" \
|
||||
PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH"
|
||||
|
||||
EXPOSE 27017
|
||||
|
|
|
|||
|
|
@ -503,10 +503,10 @@ mongodb_create_users() {
|
|||
|
||||
info "Creating users..."
|
||||
if [[ -n "$MONGODB_ROOT_PASSWORD" ]] && ! [[ "$MONGODB_REPLICA_SET_MODE" =~ ^(secondary|arbiter|hidden) ]]; then
|
||||
info "Creating root user..."
|
||||
info "Creating $MONGODB_ROOT_USER user..."
|
||||
result=$(
|
||||
mongodb_execute "" "" "" "127.0.0.1" <<EOF
|
||||
db.getSiblingDB('admin').createUser({ user: 'root', pwd: '$MONGODB_ROOT_PASSWORD', roles: [{role: 'root', db: 'admin'}] })
|
||||
db.getSiblingDB('admin').createUser({ user: '$MONGODB_ROOT_USER', pwd: '$MONGODB_ROOT_PASSWORD', roles: [{role: 'root', db: 'admin'}] })
|
||||
EOF
|
||||
)
|
||||
fi
|
||||
|
|
@ -515,7 +515,7 @@ EOF
|
|||
info "Creating '$MONGODB_USERNAME' user..."
|
||||
|
||||
result=$(
|
||||
mongodb_execute 'root' "$MONGODB_ROOT_PASSWORD" "" "127.0.0.1" <<EOF
|
||||
mongodb_execute "$MONGODB_ROOT_USER" "$MONGODB_ROOT_PASSWORD" "" "127.0.0.1" <<EOF
|
||||
db.getSiblingDB('$MONGODB_DATABASE').createUser({ user: '$MONGODB_USERNAME', pwd: '$MONGODB_PASSWORD', roles: [{role: 'readWrite', db: '$MONGODB_DATABASE'}] })
|
||||
EOF
|
||||
)
|
||||
|
|
@ -584,7 +584,7 @@ mongodb_is_primary_node_initiated() {
|
|||
local node="${1:?node is required}"
|
||||
local result
|
||||
result=$(
|
||||
mongodb_execute "root" "$MONGODB_ROOT_PASSWORD" "admin" "127.0.0.1" "$MONGODB_PORT_NUMBER" <<EOF
|
||||
mongodb_execute "$MONGODB_ROOT_USER" "$MONGODB_ROOT_PASSWORD" "admin" "127.0.0.1" "$MONGODB_PORT_NUMBER" <<EOF
|
||||
rs.initiate({"_id":"$MONGODB_REPLICA_SET_NAME", "members":[{"_id":0,"host":"$node:$MONGODB_PORT_NUMBER","priority":5}]})
|
||||
EOF
|
||||
)
|
||||
|
|
@ -1199,10 +1199,10 @@ mongodb_custom_init_scripts() {
|
|||
local mongo_user
|
||||
local mongo_pass
|
||||
if [[ -n "$MONGODB_ROOT_PASSWORD" ]]; then
|
||||
mongo_user=root
|
||||
mongo_user="$MONGODB_ROOT_USER"
|
||||
mongo_pass="$MONGODB_ROOT_PASSWORD"
|
||||
elif [[ -n "$MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD" ]]; then
|
||||
mongo_user=root
|
||||
mongo_user="$MONGODB_ROOT_USER"
|
||||
mongo_pass="$MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD"
|
||||
else
|
||||
mongo_user="$MONGODB_USERNAME"
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ export MONGODB_SYSTEM_LOG_VERBOSITY="${MONGODB_SYSTEM_LOG_VERBOSITY:-}"
|
|||
export MONGODB_DEFAULT_SYSTEM_LOG_VERBOSITY="0"
|
||||
|
||||
# User and database creation settings
|
||||
export MONGODB_ROOT_USER="root"
|
||||
export MONGODB_ROOT_PASSWORD="${MONGODB_ROOT_PASSWORD:-}"
|
||||
export MONGODB_USERNAME="${MONGODB_USERNAME:-}"
|
||||
export MONGODB_PASSWORD="${MONGODB_PASSWORD:-}"
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
|
|||
* [`5.0`, `5.0-debian-10`, `5.0.2`, `5.0.2-debian-10-r9` (5.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/5.0.2-debian-10-r9/5.0/debian-10/Dockerfile)
|
||||
* [`4.4`, `4.4-debian-10`, `4.4.8`, `4.4.8-debian-10-r41`, `latest` (4.4/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.4.8-debian-10-r41/4.4/debian-10/Dockerfile)
|
||||
* [`4.2`, `4.2-debian-10`, `4.2.16`, `4.2.16-debian-10-r1` (4.2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.2.16-debian-10-r1/4.2/debian-10/Dockerfile)
|
||||
* [`4.0`, `4.0-debian-9`, `4.0.27`, `4.0.27-debian-9-r0` (4.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.0.27-debian-9-r0/4.0/debian-9/Dockerfile)
|
||||
* [`4.0`, `4.0-debian-9`, `4.0.27`, `4.0.27-debian-9-r1` (4.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.0.27-debian-9-r1/4.0/debian-9/Dockerfile)
|
||||
* [`3.6`, `3.6-debian-9`, `3.6.23`, `3.6.23-debian-9-r157` (3.6/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/3.6.23-debian-9-r157/3.6/debian-9/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/mongodb GitHub repo](https://github.com/bitnami/bitnami-docker-mongodb).
|
||||
|
|
|
|||
Loading…
Reference in New Issue