mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 14:58:17 +08:00
9.2.7-debian-10-r5 release
This commit is contained in:
@@ -25,7 +25,7 @@ RUN /opt/bitnami/scripts/drupal/postunpack.sh
|
|||||||
RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
|
RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
|
||||||
ENV ALLOW_EMPTY_PASSWORD="no" \
|
ENV ALLOW_EMPTY_PASSWORD="no" \
|
||||||
BITNAMI_APP_NAME="drupal-nginx" \
|
BITNAMI_APP_NAME="drupal-nginx" \
|
||||||
BITNAMI_IMAGE_VERSION="9.2.7-debian-10-r4" \
|
BITNAMI_IMAGE_VERSION="9.2.7-debian-10-r5" \
|
||||||
MARIADB_HOST="mariadb" \
|
MARIADB_HOST="mariadb" \
|
||||||
MARIADB_PORT_NUMBER="3306" \
|
MARIADB_PORT_NUMBER="3306" \
|
||||||
MARIADB_ROOT_PASSWORD="" \
|
MARIADB_ROOT_PASSWORD="" \
|
||||||
|
|||||||
@@ -39,18 +39,24 @@ group_exists() {
|
|||||||
# Arguments:
|
# Arguments:
|
||||||
# $1 - group
|
# $1 - group
|
||||||
# Flags:
|
# Flags:
|
||||||
|
# -i|--gid - the ID for the new group
|
||||||
# -s|--system - Whether to create new user as system user (uid <= 999)
|
# -s|--system - Whether to create new user as system user (uid <= 999)
|
||||||
# Returns:
|
# Returns:
|
||||||
# None
|
# None
|
||||||
#########################
|
#########################
|
||||||
ensure_group_exists() {
|
ensure_group_exists() {
|
||||||
local group="${1:?group is missing}"
|
local group="${1:?group is missing}"
|
||||||
|
local gid=""
|
||||||
local is_system_user=false
|
local is_system_user=false
|
||||||
|
|
||||||
# Validate arguments
|
# Validate arguments
|
||||||
shift 1
|
shift 1
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
-i|--gid)
|
||||||
|
shift
|
||||||
|
gid="${1:?missing gid}"
|
||||||
|
;;
|
||||||
-s|--system)
|
-s|--system)
|
||||||
is_system_user=true
|
is_system_user=true
|
||||||
;;
|
;;
|
||||||
@@ -64,6 +70,13 @@ ensure_group_exists() {
|
|||||||
|
|
||||||
if ! group_exists "$group"; then
|
if ! group_exists "$group"; then
|
||||||
local -a args=("$group")
|
local -a args=("$group")
|
||||||
|
if [[ -n "$gid" ]]; then
|
||||||
|
if group_exists "$gid" ; then
|
||||||
|
error "The GID $gid is already in use." >&2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
args+=("--gid" "$gid")
|
||||||
|
fi
|
||||||
$is_system_user && args+=("--system")
|
$is_system_user && args+=("--system")
|
||||||
groupadd "${args[@]}" >/dev/null 2>&1
|
groupadd "${args[@]}" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
@@ -74,7 +87,9 @@ ensure_group_exists() {
|
|||||||
# Arguments:
|
# Arguments:
|
||||||
# $1 - user
|
# $1 - user
|
||||||
# Flags:
|
# Flags:
|
||||||
|
# -i|--uid - the ID for the new user
|
||||||
# -g|--group - the group the new user should belong to
|
# -g|--group - the group the new user should belong to
|
||||||
|
# -a|--append-groups - comma-separated list of supplemental groups to append to the new user
|
||||||
# -h|--home - the home directory for the new user
|
# -h|--home - the home directory for the new user
|
||||||
# -s|--system - whether to create new user as system user (uid <= 999)
|
# -s|--system - whether to create new user as system user (uid <= 999)
|
||||||
# Returns:
|
# Returns:
|
||||||
@@ -82,7 +97,9 @@ ensure_group_exists() {
|
|||||||
#########################
|
#########################
|
||||||
ensure_user_exists() {
|
ensure_user_exists() {
|
||||||
local user="${1:?user is missing}"
|
local user="${1:?user is missing}"
|
||||||
|
local uid=""
|
||||||
local group=""
|
local group=""
|
||||||
|
local append_groups=""
|
||||||
local home=""
|
local home=""
|
||||||
local is_system_user=false
|
local is_system_user=false
|
||||||
|
|
||||||
@@ -90,10 +107,18 @@ ensure_user_exists() {
|
|||||||
shift 1
|
shift 1
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
-i|--uid)
|
||||||
|
shift
|
||||||
|
uid="${1:?missing uid}"
|
||||||
|
;;
|
||||||
-g|--group)
|
-g|--group)
|
||||||
shift
|
shift
|
||||||
group="${1:?missing group}"
|
group="${1:?missing group}"
|
||||||
;;
|
;;
|
||||||
|
-a|--append-groups)
|
||||||
|
shift
|
||||||
|
append_groups="${1:?missing append_groups}"
|
||||||
|
;;
|
||||||
-h|--home)
|
-h|--home)
|
||||||
shift
|
shift
|
||||||
home="${1:?missing home directory}"
|
home="${1:?missing home directory}"
|
||||||
@@ -111,7 +136,15 @@ ensure_user_exists() {
|
|||||||
|
|
||||||
if ! user_exists "$user"; then
|
if ! user_exists "$user"; then
|
||||||
local -a user_args=("-N" "$user")
|
local -a user_args=("-N" "$user")
|
||||||
$is_system_user && user_args+=("--system")
|
if [[ -n "$uid" ]]; then
|
||||||
|
if user_exists "$uid" ; then
|
||||||
|
error "The UID $uid is already in use."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
user_args+=("--uid" "$uid")
|
||||||
|
else
|
||||||
|
$is_system_user && user_args+=("--system")
|
||||||
|
fi
|
||||||
useradd "${user_args[@]}" >/dev/null 2>&1
|
useradd "${user_args[@]}" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -122,6 +155,15 @@ ensure_user_exists() {
|
|||||||
usermod -g "$group" "$user" >/dev/null 2>&1
|
usermod -g "$group" "$user" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$append_groups" ]]; then
|
||||||
|
local -a groups
|
||||||
|
read -ra groups <<< "$(tr ',;' ' ' <<< "$append_groups")"
|
||||||
|
for group in "${groups[@]}"; do
|
||||||
|
ensure_group_exists "$group"
|
||||||
|
usermod -aG "$group" "$user" >/dev/null 2>&1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "$home" ]]; then
|
if [[ -n "$home" ]]; then
|
||||||
mkdir -p "$home"
|
mkdir -p "$home"
|
||||||
usermod -d "$home" "$user" >/dev/null 2>&1
|
usermod -d "$home" "$user" >/dev/null 2>&1
|
||||||
@@ -403,3 +445,4 @@ generate_sha_hash() {
|
|||||||
local -r algorithm="${2:-1}"
|
local -r algorithm="${2:-1}"
|
||||||
echo -n "$str" | "sha${algorithm}sum" | awk '{print $1}'
|
echo -n "$str" | "sha${algorithm}sum" | awk '{print $1}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ Bitnami containers can be used with [Kubeapps](https://kubeapps.com/) for deploy
|
|||||||
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
|
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
|
||||||
|
|
||||||
|
|
||||||
* [`9`, `9-debian-10`, `9.2.7`, `9.2.7-debian-10-r4`, `latest` (9/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-drupal-nginx/blob/9.2.7-debian-10-r4/9/debian-10/Dockerfile)
|
* [`9`, `9-debian-10`, `9.2.7`, `9.2.7-debian-10-r5`, `latest` (9/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-drupal-nginx/blob/9.2.7-debian-10-r5/9/debian-10/Dockerfile)
|
||||||
* [`8`, `8-debian-10`, `8.9.19`, `8.9.19-debian-10-r25` (8/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-drupal-nginx/blob/8.9.19-debian-10-r25/8/debian-10/Dockerfile)
|
* [`8`, `8-debian-10`, `8.9.19`, `8.9.19-debian-10-r25` (8/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-drupal-nginx/blob/8.9.19-debian-10-r25/8/debian-10/Dockerfile)
|
||||||
|
|
||||||
Subscribe to project updates by watching the [bitnami/drupal-nginx GitHub repo](https://github.com/bitnami/bitnami-docker-drupal-nginx).
|
Subscribe to project updates by watching the [bitnami/drupal-nginx GitHub repo](https://github.com/bitnami/bitnami-docker-drupal-nginx).
|
||||||
|
|||||||
Reference in New Issue
Block a user