Merge pull request #1 from bitnami/remove_debian_8

Removed Debian 8 from root version folders
This commit is contained in:
Carlos Rodríguez Hernández 2018-09-21 10:43:47 +02:00 committed by GitHub
commit 05ee71b6d2
3 changed files with 0 additions and 68 deletions

View File

@ -1,25 +0,0 @@
FROM bitnami/minideb:jessie as buildenv
RUN install_packages ca-certificates libc6 wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/cluster-autoscaler-1.3.1-0-linux-x64-debian-8.tar.gz && \
echo "19db67a27ac804cd95a95ce09a9451eb083e64d840323967489d72c0c7f7a679 /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.1-0-linux-x64-debian-8.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.1-0-linux-x64-debian-8.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.1-0-linux-x64-debian-8.tar.gz
##################
FROM bitnami/minideb:jessie
LABEL maintainer "Bitnami <containers@bitnami.com>"
COPY --from=buildenv /opt/bitnami/cluster-autoscaler /opt/bitnami/cluster-autoscaler
ENV BITNAMI_APP_NAME="cluster-autoscaler" \
BITNAMI_IMAGE_VERSION="1.3.1-debian-8-r6" \
PATH="/opt/bitnami/cluster-autoscaler/bin:$PATH"
RUN install_packages ca-certificates
RUN chmod -R g+rwX /opt/bitnami/cluster-autoscaler/
COPY rootfs /
WORKDIR /opt/bitnami/cluster-autoscaler
USER 1001
CMD ["/run.sh"]

View File

@ -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

View File

@ -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 "$?"