mirror of
https://github.com/bitnami/containers.git
synced 2026-04-06 01:07:45 +08:00
Remove debian 9 in favor of debian 10
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
FROM bitnami/minideb:stretch
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages ca-certificates curl procps sudo unzip wget
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/cluster-autoscaler-1.17.0-0-linux-amd64-debian-9.tar.gz && \
|
||||
echo "1387098d5430f079a49901f9cd0d21b0ef484a47718dbf3f0b37fc0bed819c4c /tmp/bitnami/pkg/cache/cluster-autoscaler-1.17.0-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.17.0-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.17.0-0-linux-amd64-debian-9.tar.gz
|
||||
RUN apt-get update && apt-get upgrade && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
|
||||
COPY rootfs /
|
||||
RUN chmod -R g+rwX /opt/bitnami/cluster-autoscaler/
|
||||
ENV BITNAMI_APP_NAME="cluster-autoscaler" \
|
||||
BITNAMI_IMAGE_VERSION="1.17.0-debian-9-r47" \
|
||||
PATH="/opt/bitnami/cluster-autoscaler/bin:$PATH"
|
||||
|
||||
WORKDIR /opt/bitnami/cluster-autoscaler
|
||||
USER 1001
|
||||
CMD [ "/run.sh" ]
|
||||
@@ -1,10 +0,0 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
cluster-autoscaler:
|
||||
image: bitnami/cluster-autoscaler:1
|
||||
volumes:
|
||||
- cluster-autoscaler_data:/bitnami
|
||||
volumes:
|
||||
cluster-autoscaler_data:
|
||||
driver: local
|
||||
@@ -1,33 +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="$!"
|
||||
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 "$?"
|
||||
Reference in New Issue
Block a user