From 7f08754e2b5c4853cbbe9234e05d31168f87050a Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 12 May 2022 08:37:58 +0000 Subject: [PATCH] 2.5.0-debian-10-r0 release --- bitnami/grafana-loki/2/debian-10/Dockerfile | 29 +++++ .../2/debian-10/docker-compose.yml | 4 + .../2/debian-10/examples/loki.yaml | 70 +++++++++++ .../opt/bitnami/.bitnami_components.json | 9 ++ .../opt/bitnami/licenses/licenses.txt | 3 + .../prebuildfs/usr/sbin/install_packages | 24 ++++ bitnami/grafana-loki/README.md | 117 ++++++++++++++++++ bitnami/grafana-loki/docker-compose.yml | 4 + 8 files changed, 260 insertions(+) create mode 100644 bitnami/grafana-loki/2/debian-10/Dockerfile create mode 100644 bitnami/grafana-loki/2/debian-10/docker-compose.yml create mode 100644 bitnami/grafana-loki/2/debian-10/examples/loki.yaml create mode 100644 bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json create mode 100644 bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/licenses/licenses.txt create mode 100755 bitnami/grafana-loki/2/debian-10/prebuildfs/usr/sbin/install_packages create mode 100644 bitnami/grafana-loki/README.md create mode 100644 bitnami/grafana-loki/docker-compose.yml diff --git a/bitnami/grafana-loki/2/debian-10/Dockerfile b/bitnami/grafana-loki/2/debian-10/Dockerfile new file mode 100644 index 000000000000..c89f3384b0cb --- /dev/null +++ b/bitnami/grafana-loki/2/debian-10/Dockerfile @@ -0,0 +1,29 @@ +FROM docker.io/bitnami/minideb:buster +LABEL maintainer "Bitnami " + +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/grafana-loki-2.5.0-0-linux-amd64-debian-10.tar.gz && \ + echo "66d75ec58c2e33aa0ab78644fdd97ae744d4aca72aaca6b473355d6a1554c184 /tmp/bitnami/pkg/cache/grafana-loki-2.5.0-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \ + tar -zxf /tmp/bitnami/pkg/cache/grafana-loki-2.5.0-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \ + rm -rf /tmp/bitnami/pkg/cache/grafana-loki-2.5.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 mkdir -p /bitnami/grafana-loki/data /bitnami/grafana-loki/loki /bitnami/grafana-loki/wal && chmod -R g+rwX /bitnami/grafana-loki && ln -s /bitnami/grafana-loki/loki /loki && ln -s /bitnami/grafana-loki/data /data && ln -s /bitnami/grafana-loki/wal /wal + +ENV APP_VERSION="2.5.0" \ + BITNAMI_APP_NAME="grafana-loki" \ + PATH="/opt/bitnami/grafana-loki/bin:$PATH" + +EXPOSE 3100 + +USER 1001 +ENTRYPOINT [ "loki" ] +CMD [ "-config.file=/bitnami/grafana-loki/conf/loki.yaml" ] diff --git a/bitnami/grafana-loki/2/debian-10/docker-compose.yml b/bitnami/grafana-loki/2/debian-10/docker-compose.yml new file mode 100644 index 000000000000..22bd26f3afa2 --- /dev/null +++ b/bitnami/grafana-loki/2/debian-10/docker-compose.yml @@ -0,0 +1,4 @@ +version: '2' +services: + grafana-loki: + image: docker.io/bitnami/grafana-loki:2 diff --git a/bitnami/grafana-loki/2/debian-10/examples/loki.yaml b/bitnami/grafana-loki/2/debian-10/examples/loki.yaml new file mode 100644 index 000000000000..807095ae0235 --- /dev/null +++ b/bitnami/grafana-loki/2/debian-10/examples/loki.yaml @@ -0,0 +1,70 @@ +# This is a configuration to deploy Loki depending only on a storage solution +# for example, an S3-compatible API like MinIO. +# The ring configuration is based on the gossip memberlist and the index is shipped to storage +# via Single Store (boltdb-shipper) + +auth_enabled: false + +server: + http_listen_port: 3100 + +distributor: + ring: + kvstore: + store: memberlist + +ingester: + lifecycler: + ring: + kvstore: + store: memberlist + replication_factor: 1 + final_sleep: 0s + chunk_idle_period: 5m + chunk_retain_period: 30s + +memberlist: + abort_if_cluster_join_fails: false + + # Expose this port on all distributor, ingester + # and querier replicas. + bind_port: 7946 + + # You can use a headless k8s service for all distributor, + # ingester and querier components. + join_members: + - loki-gossip-ring.loki.svc.cluster.local:7946 + + max_join_backoff: 1m + max_join_retries: 10 + min_join_backoff: 1s + +schema_config: + configs: + - from: 2020-05-15 + store: boltdb-shipper + object_store: s3 + schema: v11 + index: + prefix: index_ + period: 24h + +storage_config: + boltdb_shipper: + active_index_directory: /loki/index + cache_location: /loki/index_cache + shared_store: s3 + + aws: + s3: s3://access_key:secret_access_key@custom_endpoint/bucket_name + s3forcepathstyle: true + +limits_config: + enforce_metric_name: false + reject_old_samples: true + reject_old_samples_max_age: 168h + +compactor: + working_directory: /data/compactor + shared_store: s3 + compaction_interval: 5m diff --git a/bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json new file mode 100644 index 000000000000..e77e9050ba1a --- /dev/null +++ b/bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json @@ -0,0 +1,9 @@ +{ + "grafana-loki": { + "arch": "amd64", + "digest": "66d75ec58c2e33aa0ab78644fdd97ae744d4aca72aaca6b473355d6a1554c184", + "distro": "debian-10", + "type": "NAMI", + "version": "2.5.0-0" + } +} \ No newline at end of file diff --git a/bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/licenses/licenses.txt b/bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/licenses/licenses.txt new file mode 100644 index 000000000000..c76ba31f3b8a --- /dev/null +++ b/bitnami/grafana-loki/2/debian-10/prebuildfs/opt/bitnami/licenses/licenses.txt @@ -0,0 +1,3 @@ +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 diff --git a/bitnami/grafana-loki/2/debian-10/prebuildfs/usr/sbin/install_packages b/bitnami/grafana-loki/2/debian-10/prebuildfs/usr/sbin/install_packages new file mode 100755 index 000000000000..c9577647443b --- /dev/null +++ b/bitnami/grafana-loki/2/debian-10/prebuildfs/usr/sbin/install_packages @@ -0,0 +1,24 @@ +#!/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 diff --git a/bitnami/grafana-loki/README.md b/bitnami/grafana-loki/README.md new file mode 100644 index 000000000000..e6792420fc2c --- /dev/null +++ b/bitnami/grafana-loki/README.md @@ -0,0 +1,117 @@ +# Grafana Loki packaged by Bitnami + +## What is Grafana Loki? + +> Loki is a horizontally scalable, highly available, multi-tenant log aggregation system. Features integration with Prometheus, real-time log tailing and full persistence to object storage. + +[Overview of Grafana Loki](https://grafana.com/oss/loki/) + +Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement. + +## TL;DR + +```console +$ docker run --name grafana-loki bitnami/grafana-loki:latest +``` + +## Why use Bitnami Images? + +* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems. +* With Bitnami images the latest bug fixes and features are available as soon as possible. +* Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs. +* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading Linux distribution. +* All Bitnami images available in Docker Hub are signed with [Docker Content Trust (DCT)](https://docs.docker.com/engine/security/trust/content_trust/). You can use `DOCKER_CONTENT_TRUST=1` to verify the integrity of the images. +* Bitnami container images are released daily with the latest distribution packages available. + +## Supported tags and respective `Dockerfile` links + +Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). + + +* [`2`, `2-debian-10`, `2.5.0`, `2.5.0-debian-10-r0`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-grafana-loki/blob/2.5.0-debian-10-r0/2/debian-10/Dockerfile) + +Subscribe to project updates by watching the [bitnami/grafana-loki GitHub repo](https://github.com/bitnami/bitnami-docker-grafana-loki). + +## Get this image + +The recommended way to get the Bitnami grafana-loki Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/grafana-loki). + +```console +$ docker pull bitnami/grafana-loki:latest +``` + +To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/grafana-loki/tags/) in the Docker Hub Registry. + +```console +$ docker pull bitnami/grafana-loki:[TAG] +``` + +If you wish, you can also build the image yourself. + +```console +$ docker build -t bitnami/grafana-loki:latest 'https://github.com/bitnami/bitnami-docker-grafana-loki.git#master:2/debian-10' +``` + +## Why use a non-root container? + +Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers [in our docs](https://docs.bitnami.com/tutorials/work-with-non-root-containers/). + +## Configuration + +### Running commands + +To run commands inside this container you can use `docker run`, for example to execute `grafana-loki --version` you can follow the example below: + +```console +$ docker run --rm --name grafana-loki bitnami/grafana-loki:latest -- --version +``` + +In order for the container to work, you need to mount your custom `loki.yaml` file in `/bitnami/grafana-loki/conf/`. The following example runs Grafana Loki with a custom configuration file: + +```console +$ docker run --rm --name grafana-loki -v /path/to/loki.yaml:/bitnami/grafana-loki/conf/loki.yaml bitnami/grafana-loki:latest +``` + +Using docker-compose: + +```yaml +version: '2' +services: + + grafana-loki: + image: grafana-loki + volumes: + - /path/to/loki.yaml:/bitnami/grafana-loki/conf/loki.yaml +``` + +Check the [official Grafana Loki documentation](https://grafana.com/docs/loki/latest/configuration/) to understand the possible configurations. + +## Contributing + +We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-grafana-loki/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-grafana-loki/pulls) with your contribution. + +## Issues + +If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-grafana-loki/issues/new). For us to provide better support, be sure to include the following information in your issue: + +- Host OS and version +- Docker version (`docker version`) +- Output of `docker info` +- Version of this container +- The command you used to run the container, and any relevant output you saw (masking any sensitive information) + +## License + +Copyright © 2022 Bitnami + +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. diff --git a/bitnami/grafana-loki/docker-compose.yml b/bitnami/grafana-loki/docker-compose.yml new file mode 100644 index 000000000000..22bd26f3afa2 --- /dev/null +++ b/bitnami/grafana-loki/docker-compose.yml @@ -0,0 +1,4 @@ +version: '2' +services: + grafana-loki: + image: docker.io/bitnami/grafana-loki:2