2021.10.13-debian-10-r0 release

This commit is contained in:
Bitnami Bot
2021-10-18 16:14:10 +00:00
parent d6fe3a7416
commit 9fa0ded18e
5 changed files with 51 additions and 8 deletions

View File

@@ -10,14 +10,14 @@ COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages acl ca-certificates curl gzip jq procps tar
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "minio-client" "2021.10.7-0" --checksum f39c590e6fb454619af7658d755354276b0276a2f772e08bd4928abdf2f863c8
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "minio" "2021.10.6-0" --checksum 617018351944ec98e4ff051c6a508e738c0fddb2943138480221c292e0d58e37
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "minio" "2021.10.13-0" --checksum 35e54f7a9cb445c7eb6c8e6ba9f1fb5a790ebaf2379db6f77c9bd2e5a6f282fa
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum 3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e
RUN chmod g+rwX /opt/bitnami
COPY rootfs /
RUN /opt/bitnami/scripts/minio/postunpack.sh
ENV BITNAMI_APP_NAME="minio" \
BITNAMI_IMAGE_VERSION="2021.10.6-debian-10-r1" \
BITNAMI_IMAGE_VERSION="2021.10.13-debian-10-r0" \
PATH="/opt/bitnami/minio-client/bin:/opt/bitnami/minio/bin:/opt/bitnami/common/bin:$PATH"
VOLUME [ "/certs", "/data" ]

View File

@@ -8,10 +8,10 @@
},
"minio": {
"arch": "amd64",
"digest": "617018351944ec98e4ff051c6a508e738c0fddb2943138480221c292e0d58e37",
"digest": "35e54f7a9cb445c7eb6c8e6ba9f1fb5a790ebaf2379db6f77c9bd2e5a6f282fa",
"distro": "debian-10",
"type": "NAMI",
"version": "2021.10.6-0"
"version": "2021.10.13-0"
},
"minio-client": {
"arch": "amd64",

View File

@@ -39,18 +39,24 @@ group_exists() {
# Arguments:
# $1 - group
# Flags:
# -i|--gid - the ID for the new group
# -s|--system - Whether to create new user as system user (uid <= 999)
# Returns:
# None
#########################
ensure_group_exists() {
local group="${1:?group is missing}"
local gid=""
local is_system_user=false
# Validate arguments
shift 1
while [ "$#" -gt 0 ]; do
case "$1" in
-i|--gid)
shift
gid="${1:?missing gid}"
;;
-s|--system)
is_system_user=true
;;
@@ -64,6 +70,13 @@ ensure_group_exists() {
if ! group_exists "$group"; then
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")
groupadd "${args[@]}" >/dev/null 2>&1
fi
@@ -74,7 +87,9 @@ ensure_group_exists() {
# Arguments:
# $1 - user
# Flags:
# -i|--uid - the ID for the new user
# -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
# -s|--system - whether to create new user as system user (uid <= 999)
# Returns:
@@ -82,7 +97,9 @@ ensure_group_exists() {
#########################
ensure_user_exists() {
local user="${1:?user is missing}"
local uid=""
local group=""
local append_groups=""
local home=""
local is_system_user=false
@@ -90,10 +107,18 @@ ensure_user_exists() {
shift 1
while [ "$#" -gt 0 ]; do
case "$1" in
-i|--uid)
shift
uid="${1:?missing uid}"
;;
-g|--group)
shift
group="${1:?missing group}"
;;
-a|--append-groups)
shift
append_groups="${1:?missing append_groups}"
;;
-h|--home)
shift
home="${1:?missing home directory}"
@@ -111,7 +136,15 @@ ensure_user_exists() {
if ! user_exists "$user"; then
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
fi
@@ -122,6 +155,15 @@ ensure_user_exists() {
usermod -g "$group" "$user" >/dev/null 2>&1
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
mkdir -p "$home"
usermod -d "$home" "$user" >/dev/null 2>&1
@@ -403,3 +445,4 @@ generate_sha_hash() {
local -r algorithm="${2:-1}"
echo -n "$str" | "sha${algorithm}sum" | awk '{print $1}'
}

View File

@@ -174,8 +174,8 @@ minio_stop() {
minio_client_execute_timeout admin service stop local >/dev/null 2>&1 || true
local counter=5
while is_minio_running; do
if [[ "$counter" -ne 0 ]]; then
while is_minio_running || is_service_running "$MINIO_PID"; do
if [[ "$counter" -le 0 ]]; then
break
fi
sleep 1;

View File

@@ -45,7 +45,7 @@ Non-root container images add an extra layer of security and are generally recom
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/).
* [`2021`, `2021-debian-10`, `2021.10.6`, `2021.10.6-debian-10-r1`, `latest` (2021/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-minio/blob/2021.10.6-debian-10-r1/2021/debian-10/Dockerfile)
* [`2021`, `2021-debian-10`, `2021.10.13`, `2021.10.13-debian-10-r0`, `latest` (2021/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-minio/blob/2021.10.13-debian-10-r0/2021/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/minio GitHub repo](https://github.com/bitnami/bitnami-docker-minio).