Remove */ol-7 if */debian-10 exists

This commit is contained in:
darteaga
2020-02-27 15:36:29 +00:00
parent a413439355
commit 317d3ce4b9
24 changed files with 0 additions and 476 deletions

View File

@@ -1,21 +0,0 @@
FROM oraclelinux:7-slim
LABEL maintainer "Bitnami <containers@bitnami.com>"
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages bzip2-libs ca-certificates curl gcc gcc-c++ git glibc gzip hostname keyutils-libs krb5-libs libaio-devel libcom_err libselinux libtool make ncurses-libs nss-softokn-freebl openssl-libs patch pcre pkgconfig procps-ng readline sqlite sudo tar unzip wget which zlib
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/python-2.7.17-1-linux-x86_64-ol-7.tar.gz && \
echo "764d5a1d70462980aedd371c7062c517055dabcb386805cc7c7d208219633ad7 /tmp/bitnami/pkg/cache/python-2.7.17-1-linux-x86_64-ol-7.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/python-2.7.17-1-linux-x86_64-ol-7.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/python-2.7.17-1-linux-x86_64-ol-7.tar.gz
RUN yum upgrade -y && \
rm -r /var/cache/yum
ENV BITNAMI_APP_NAME="python" \
BITNAMI_IMAGE_VERSION="2.7.17-ol-7-r130" \
PATH="/opt/bitnami/python/bin:$PATH"
EXPOSE 8000
WORKDIR /app
CMD [ "python" ]

View File

@@ -1,10 +0,0 @@
version: '2'
services:
python:
tty: true # Enables debugging capabilities when attached to this container.
image: 'bitnami/python:2-ol-7'
ports:
- 8000:8000
volumes:
- .:/app

View File

@@ -1,29 +0,0 @@
#!/bin/sh
set -eu
if [[ -n "oracle-epel-release-el7" ]]; then
if ! yum list installed oracle-epel-release-el7 >/dev/null 2>&1; then
yum -y install oracle-epel-release-el7 >/dev/null 2>&1
CODE=$?
if (( $CODE != 0 )); then
echo "EPEL repository installation failed"
exit $CODE
fi
fi
fi
max=2
for ((n = 1 ; n <= max ; n+=1 )); do
set +e
yum --enablerepo base,updates,ol7_developer_EPEL,ol7_optional_latest install -y "$@"
CODE=$?
set -e
if (( $CODE == 0 )); then
break
fi
if (( $n == $max )); then
exit $CODE
fi
echo "yum failed, retrying"
done
rm -r /var/cache/yum