Remove debian-10 directory

Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>
This commit is contained in:
Carlos Rodriguez Hernandez
2022-06-22 10:50:11 +00:00
committed by Bitnami Containers
parent 26cf833759
commit a04b28d187
6 changed files with 0 additions and 109 deletions

View File

@@ -1,29 +0,0 @@
FROM docker.io/bitnami/minideb:buster
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-10" \
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-10.tar.gz && \
echo "953c3f9dc52aa009e92028b0b26b143500184e4c836715375cc5fdabf57ba653 /tmp/bitnami/pkg/cache/cluster-autoscaler-1.24.0-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.24.0-0-linux-amd64-debian-10.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-10.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

@@ -1,10 +0,0 @@
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

@@ -1,9 +0,0 @@
{
"cluster-autoscaler": {
"arch": "amd64",
"digest": "953c3f9dc52aa009e92028b0b26b143500184e4c836715375cc5fdabf57ba653",
"distro": "debian-10",
"type": "NAMI",
"version": "1.24.0-0"
}
}

View File

@@ -1,3 +0,0 @@
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

@@ -1,24 +0,0 @@
#!/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

@@ -1,34 +0,0 @@
#!/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 "$?"