1.24.0-debian-11-r0 release

This commit is contained in:
Bitnami Bot 2022-06-06 10:24:16 +00:00 committed by Bitnami Containers
parent e8e7e29309
commit 417a453306
7 changed files with 111 additions and 2 deletions

View File

@ -0,0 +1,29 @@
FROM docker.io/bitnami/minideb:bullseye
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-11" \
OS_NAME="linux"
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages ca-certificates curl gzip procps tar wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/cluster-autoscaler-1.24.0-0-linux-amd64-debian-11.tar.gz && \
echo "7ec31dfcb46995ae9159c72aa3bbc901cfb6e48fa313a1bfcb53ba31f77ff49e /tmp/bitnami/pkg/cache/cluster-autoscaler-1.24.0-0-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.24.0-0-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.24.0-0-linux-amd64-debian-11.tar.gz
RUN apt-get update && apt-get upgrade -y && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
RUN ln -sf /opt/bitnami/cluster-autoscaler/bin/cluster-autoscaler /opt/bitnami/cluster-autoscaler/cluster-autoscaler
COPY rootfs /
RUN chmod -R g+rwX /opt/bitnami/cluster-autoscaler/
ENV APP_VERSION="1.24.0" \
BITNAMI_APP_NAME="cluster-autoscaler" \
PATH="/opt/bitnami/cluster-autoscaler/bin:$PATH"
WORKDIR /opt/bitnami/cluster-autoscaler
USER 1001
CMD [ "/run.sh" ]

View File

@ -0,0 +1,10 @@
version: '2'
services:
cluster-autoscaler:
image: docker.io/bitnami/cluster-autoscaler:1
volumes:
- cluster-autoscaler_data:/bitnami
volumes:
cluster-autoscaler_data:
driver: local

View File

@ -0,0 +1,9 @@
{
"cluster-autoscaler": {
"arch": "amd64",
"digest": "7ec31dfcb46995ae9159c72aa3bbc901cfb6e48fa313a1bfcb53ba31f77ff49e",
"distro": "debian-11",
"type": "NAMI",
"version": "1.24.0-0"
}
}

View File

@ -0,0 +1,3 @@
Bitnami containers ship with software bundles. You can find the licenses under:
/opt/bitnami/nami/COPYING
/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt

View File

@ -0,0 +1,24 @@
#!/bin/sh
set -e
set -u
export DEBIAN_FRONTEND=noninteractive
n=0
max=2
until [ $n -gt $max ]; do
set +e
(
apt-get update -qq &&
apt-get install -y --no-install-recommends "$@"
)
CODE=$?
set -e
if [ $CODE -eq 0 ]; then
break
fi
if [ $n -eq $max ]; then
exit $CODE
fi
echo "apt failed, retrying"
n=$(($n + 1))
done
rm -r /var/lib/apt/lists /var/cache/apt/archives

View File

@ -0,0 +1,34 @@
#!/bin/sh
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# A wrapper script trapping SIGTERM (docker stop) and passing the signal to
# cluster-autoscaler binary.
if [ -z "$LOG_OUTPUT" ]; then
LOG_OUTPUT="/opt/bitnami/cluster-autoscaler/log/cluster_autoscaler.log"
fi
/opt/bitnami/cluster-autoscaler/bin/cluster-autoscaler "$@" 1>>$LOG_OUTPUT 2>&1 &
pid="$!"
# shellcheck disable=SC2064
trap "kill -15 $pid" 15
# We need a loop here, because receiving signal breaks out of wait.
# kill -0 doesn't send any signal, but it still checks if the process is running.
while kill -0 $pid > /dev/null 2>&1; do
wait $pid
done
exit "$?"

View File

@ -62,7 +62,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/).
* [`1`, `1-debian-10`, `1.24.0`, `1.24.0-debian-10-r18`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-cluster-autoscaler/blob/1.24.0-debian-10-r18/1/debian-10/Dockerfile)
* [`1`, `1-debian-11`, `1.24.0`, `1.24.0-debian-11-r0`, `latest` (1/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-cluster-autoscaler/blob/1.24.0-debian-11-r0/1/debian-11/Dockerfile)
Subscribe to project updates by watching the [bitnami/cluster-autoscaler GitHub repo](https://github.com/bitnami/bitnami-docker-cluster-autoscaler).
@ -83,7 +83,7 @@ $ docker pull bitnami/cluster-autoscaler:[TAG]
If you wish, you can also build the image yourself.
```console
$ docker build -t bitnami/cluster-autoscaler:latest 'https://github.com/bitnami/bitnami-docker-cluster-autoscaler.git#master:1/debian-10'
$ docker build -t bitnami/cluster-autoscaler:latest 'https://github.com/bitnami/bitnami-docker-cluster-autoscaler.git#master:1/debian-11'
```
## Configuration