diff --git a/bitnami/kibana/7/ol-7/Dockerfile b/bitnami/kibana/7/ol-7/Dockerfile index ff5089e92aef..51815b964420 100644 --- a/bitnami/kibana/7/ol-7/Dockerfile +++ b/bitnami/kibana/7/ol-7/Dockerfile @@ -9,29 +9,18 @@ ENV BITNAMI_PKG_CHMOD="-R g+rwX" \ COPY prebuildfs / # Install required system packages and dependencies RUN install_packages ca-certificates curl glibc gzip hostname libaio-devel libgcc libstdc++ procps-ng sudo tar which -RUN /bitnami-user.sh && \ - /install-nami.sh +RUN /build/bitnami-user.sh && \ + /build/install-nami.sh RUN bitnami-pkg unpack kibana-7.5.1-0 --checksum 88e0201898d3b80dde5079fec8c0bbc66d81e31a655e35eb942b6912c28dac8b RUN yum upgrade -y && \ rm -r /var/cache/yum -RUN curl --silent -L https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 > /usr/local/bin/gosu && \ - echo 0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7 /usr/local/bin/gosu | sha256sum --check && \ - chmod u+x /usr/local/bin/gosu && \ - mkdir -p /opt/bitnami/licenses && \ - curl --silent -L https://raw.githubusercontent.com/tianon/gosu/master/LICENSE > /opt/bitnami/licenses/gosu-1.11.txt +RUN /build/install-gosu.sh RUN mkdir -p /bitnami/kibana/ /docker-entrypoint-initdb.d/ && chmod -R g+rwX /bitnami/ /docker-entrypoint-initdb.d/ -RUN for server in "ha.pool.sks-keyservers.net" "hkp://p80.pool.sks-keyservers.net:80" "keyserver.ubuntu.com" "hkp://keyserver.ubuntu.com:80" "pgp.mit.edu"; do gpg --keyserver $server --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; done && \ - gpg --fingerprint 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 | grep -q "6380 DC42 8747 F6C3 93FE ACA5 9A84 159D 7001 A4E5" && \ - curl --silent -L https://github.com/krallin/tini/releases/download/v0.13.2/tini.asc > /tmp/tini.asc && \ - curl --silent -L https://github.com/krallin/tini/releases/download/v0.13.2/tini > /usr/local/bin/tini && \ - gpg --verify /tmp/tini.asc /usr/local/bin/tini && \ - chmod +x /usr/local/bin/tini && \ - mkdir -p /opt/bitnami/licenses && \ - curl --silent -L https://raw.githubusercontent.com/krallin/tini/master/LICENSE > /opt/bitnami/licenses/tini-0.13.2.txt +RUN /build/install-tini.sh COPY rootfs / ENV BITNAMI_APP_NAME="kibana" \ - BITNAMI_IMAGE_VERSION="7.5.1-ol-7-r30" \ + BITNAMI_IMAGE_VERSION="7.5.1-ol-7-r31" \ KIBANA_ELASTICSEARCH_PORT_NUMBER="9200" \ KIBANA_ELASTICSEARCH_URL="elasticsearch" \ KIBANA_PORT_NUMBER="5601" \ diff --git a/bitnami/kibana/7/ol-7/prebuildfs/build/bitnami-user.sh b/bitnami/kibana/7/ol-7/prebuildfs/build/bitnami-user.sh new file mode 100755 index 000000000000..ab84296bcdfa --- /dev/null +++ b/bitnami/kibana/7/ol-7/prebuildfs/build/bitnami-user.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +useradd -ms /bin/bash bitnami +mkdir -p /opt/bitnami && chown bitnami:bitnami /opt/bitnami +sed -i -e 's/\s*Defaults\s*secure_path\s*=/# Defaults secure_path=/' /etc/sudoers +echo 'bitnami ALL=NOPASSWD: ALL' >> /etc/sudoers diff --git a/bitnami/kibana/7/ol-7/prebuildfs/build/install-gosu.sh b/bitnami/kibana/7/ol-7/prebuildfs/build/install-gosu.sh new file mode 100755 index 000000000000..1756700daa89 --- /dev/null +++ b/bitnami/kibana/7/ol-7/prebuildfs/build/install-gosu.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +VERSION="1.11" +SHA256="0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7" + +curl --silent -L "https://github.com/tianon/gosu/releases/download/${VERSION}/gosu-amd64" > "/usr/local/bin/gosu" +echo "$SHA256" "/usr/local/bin/gosu" | sha256sum --check +chmod u+x "/usr/local/bin/gosu" +mkdir -p "/opt/bitnami/licenses" +curl --silent -L "https://raw.githubusercontent.com/tianon/gosu/master/LICENSE" > "/opt/bitnami/licenses/gosu-${VERSION}.txt" diff --git a/bitnami/kibana/7/ol-7/prebuildfs/build/install-nami.sh b/bitnami/kibana/7/ol-7/prebuildfs/build/install-nami.sh new file mode 100755 index 000000000000..d8a59c381f6d --- /dev/null +++ b/bitnami/kibana/7/ol-7/prebuildfs/build/install-nami.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +curl --silent -L https://nami-prod.s3.amazonaws.com/tools/nami/releases/nami-1.0.0-1-linux-x64.tar.gz > /tmp/nami-linux-x64.tar.gz +echo "80488279b056d5e9c183fe34097c5f496715ab16a602afcc9f78d59f15139a16 /tmp/nami-linux-x64.tar.gz" | sha256sum --check +mkdir -p /opt/bitnami/nami /opt/bitnami/licenses +tar xzf /tmp/nami-linux-x64.tar.gz --strip 1 -C /opt/bitnami/nami && rm /tmp/nami-linux-x64.tar.gz +curl --silent -L https://raw.githubusercontent.com/bitnami/nami/master/COPYING > /opt/bitnami/licenses/nami-1.0.0-1.txt diff --git a/bitnami/kibana/7/ol-7/prebuildfs/build/install-tini.sh b/bitnami/kibana/7/ol-7/prebuildfs/build/install-tini.sh new file mode 100755 index 000000000000..8376a36aee5f --- /dev/null +++ b/bitnami/kibana/7/ol-7/prebuildfs/build/install-tini.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +GPG_KEY="595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7" +GPG_KEY_FINGERPRINT="6380 DC42 8747 F6C3 93FE ACA5 9A84 159D 7001 A4E5" +SERVERS=("ha.pool.sks-keyservers.net" "hkp://p80.pool.sks-keyservers.net:80" "keyserver.ubuntu.com" "hkp://keyserver.ubuntu.com:80" "pgp.mit.edu") +VERSION="0.13.2" + +for server in "${SERVERS[@]}"; do + gpg --keyserver "$server" --recv-keys "$GPG_KEY" && break || : +done +gpg --fingerprint "$GPG_KEY" | grep -q "$GPG_KEY_FINGERPRINT" +curl --silent -L "https://github.com/krallin/tini/releases/download/v${VERSION}/tini.asc" > "/tmp/tini.asc" +curl --silent -L "https://github.com/krallin/tini/releases/download/v${VERSION}/tini" > "/usr/local/bin/tini" +gpg --verify "/tmp/tini.asc" "/usr/local/bin/tini" +chmod +x "/usr/local/bin/tini" +mkdir -p "/opt/bitnami/licenses" +curl --silent -L "https://raw.githubusercontent.com/krallin/tini/master/LICENSE" > "/opt/bitnami/licenses/tini-${VERSION}.txt" diff --git a/bitnami/kibana/7/ol-7/prebuildfs/usr/local/bin/bitnami-pkg b/bitnami/kibana/7/ol-7/prebuildfs/usr/local/bin/bitnami-pkg index 0d68b3eda1cc..3d934df5585a 100755 --- a/bitnami/kibana/7/ol-7/prebuildfs/usr/local/bin/bitnami-pkg +++ b/bitnami/kibana/7/ol-7/prebuildfs/usr/local/bin/bitnami-pkg @@ -57,6 +57,9 @@ identify_arch() { ol-*) arch=x86_64 ;; + centos-*) + arch=x86_64 + ;; rhel-*) arch=x86_64 ;; diff --git a/bitnami/kibana/README.md b/bitnami/kibana/README.md index 75d919520114..2b5ded55bdc6 100644 --- a/bitnami/kibana/README.md +++ b/bitnami/kibana/README.md @@ -49,7 +49,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/containers/how-to/understand-rolling-tags-containers/). -* [`7-ol-7`, `7.5.1-ol-7-r30` (7/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-kibana/blob/7.5.1-ol-7-r30/7/ol-7/Dockerfile) +* [`7-ol-7`, `7.5.1-ol-7-r31` (7/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-kibana/blob/7.5.1-ol-7-r31/7/ol-7/Dockerfile) * [`7-debian-9`, `7.5.1-debian-9-r20`, `7`, `7.5.1`, `7.5.1-r20`, `latest` (7/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-kibana/blob/7.5.1-debian-9-r20/7/debian-9/Dockerfile) * [`6-ol-7`, `6.8.6-ol-7-r30` (6/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-kibana/blob/6.8.6-ol-7-r30/6/ol-7/Dockerfile) * [`6-debian-9`, `6.8.6-debian-9-r27`, `6`, `6.8.6`, `6.8.6-r27` (6/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-kibana/blob/6.8.6-debian-9-r27/6/debian-9/Dockerfile)