diff --git a/Cloud/loki/3.5.8/24.03-lts-sp2/Dockerfile b/Cloud/loki/3.5.8/24.03-lts-sp2/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d856952dd561efafb408a64549f753702abb0945 --- /dev/null +++ b/Cloud/loki/3.5.8/24.03-lts-sp2/Dockerfile @@ -0,0 +1,29 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM ${BASE} + +ARG TARGETARCH +ARG BUILDARCH +ARG VERSION=3.5.8 + +RUN dnf install -y unzip shadow-utils && dnf clean all + +RUN curl -fSL --output logcli-linux.zip https://github.com/grafana/loki/releases/download/v${VERSION}/logcli-linux-${TARGETARCH}.zip && \ + curl -fSL --output loki-linux.zip https://github.com/grafana/loki/releases/download/v${VERSION}/loki-linux-${TARGETARCH}.zip && \ + curl -fSL --output promtail-linux.zip https://github.com/grafana/loki/releases/download/v${VERSION}/promtail-linux-${TARGETARCH}.zip && \ + unzip logcli-linux.zip && mv logcli-linux-${TARGETARCH} /usr/local/bin/logcli && \ + unzip loki-linux.zip && mv loki-linux-${TARGETARCH} /usr/local/bin/loki && \ + unzip promtail-linux.zip && mv promtail-linux-${TARGETARCH} /usr/local/bin/promtail && \ + rm -rf loki-linux.zip promtail-linux.zip logcli-linux.zip + +COPY local-config.yaml /etc/loki/local-config.yaml + +RUN groupadd -g 10001 loki && \ + adduser -u 10001 -g loki loki && \ + mkdir -p /loki/rules && \ + mkdir -p /loki/rules-temp && \ + chown -R loki:loki /etc/loki /loki + +USER 10001 +EXPOSE 3100 +ENTRYPOINT [ "loki" ] +CMD ["-config.file=/etc/loki/local-config.yaml"] \ No newline at end of file diff --git a/Cloud/loki/3.5.8/24.03-lts-sp2/local-config.yaml b/Cloud/loki/3.5.8/24.03-lts-sp2/local-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b74d3561c67867a333146f168c9f5d5e0ee4cf47 --- /dev/null +++ b/Cloud/loki/3.5.8/24.03-lts-sp2/local-config.yaml @@ -0,0 +1,42 @@ +auth_enabled: false + +server: + http_listen_port: 3100 + +common: + instance_addr: 127.0.0.1 + path_prefix: /loki + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory + +schema_config: + configs: + - from: 2020-10-24 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h + +ruler: + alertmanager_url: http://localhost:9093 + +# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration +# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/ +# +# Statistics help us better understand how Loki is used, and they show us performance +# levels for most users. This helps us prioritize features and documentation. +# For more information on what's sent, look at +# https://github.com/grafana/loki/blob/main/pkg/usagestats/stats.go +# Refer to the buildReport method to see what goes into a report. +# +# If you would like to disable reporting, uncomment the following lines: +#analytics: +# reporting_enabled: false \ No newline at end of file diff --git a/Cloud/loki/README.md b/Cloud/loki/README.md index 32324d299b36d3e02cfb5b54b2f336f82aae07d1..d64113ae60fc71b5b5083f83c5647ff07f9c4da7 100644 --- a/Cloud/loki/README.md +++ b/Cloud/loki/README.md @@ -17,6 +17,7 @@ Learn more on [Loki Website](https://grafana.com/oss/loki/)⁠. The tag of each `loki` docker image is consist of the version of `loki` and the version of basic image. The details are as follows | Tag | Currently | Architectures | |----------|-------------|------------------| +|[3.5.8-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/3.5.8/24.03-lts-sp2/Dockerfile) | loki 3.5.8 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[3.5.7-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/3.5.7/24.03-lts-sp2/Dockerfile) | loki 3.5.7 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[2.9.5-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/2.9.5/22.03-lts-sp3/Dockerfile)| Grafana Loki 2.9.5 on openEuler 22.03-LTS-SP3 | amd64, arm64 | |[3.2.1-oe2203sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/3.2.1/22.03-lts-sp1/Dockerfile)| Grafana Loki 3.2.1 on openEuler 22.03-LTS-SP1 | amd64, arm64 | diff --git a/Cloud/loki/doc/image-info.yml b/Cloud/loki/doc/image-info.yml index 1a70ad904422f6656fcfde99654be2b0c9f702d8..7705f42e87a1a3c1451a05a897b0a3dceaf7f53f 100644 --- a/Cloud/loki/doc/image-info.yml +++ b/Cloud/loki/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[3.5.8-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/3.5.8/24.03-lts-sp2/Dockerfile) | loki 3.5.8 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[3.5.7-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/3.5.7/24.03-lts-sp2/Dockerfile) | loki 3.5.7 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[2.9.5-oe2203sp3](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/2.9.5/22.03-lts-sp3/Dockerfile)| Grafana Loki 2.9.5 on openEuler 22.03-LTS-SP3 | amd64, arm64 | |[3.2.1-oe2203sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Cloud/loki/3.2.1/22.03-lts-sp1/Dockerfile)| Grafana Loki 3.2.1 on openEuler 22.03-LTS-SP1 | amd64, arm64 | diff --git a/Cloud/loki/meta.yml b/Cloud/loki/meta.yml index c8754cac7b51c28a6e981e3d5d30789261d24180..47b1c8a1dba4d6ba4b2d88e2488f91d012bb7195 100644 --- a/Cloud/loki/meta.yml +++ b/Cloud/loki/meta.yml @@ -31,4 +31,6 @@ 3.5.5-oe2403sp2: path: 3.5.5/24.03-lts-sp2/Dockerfile 3.5.7-oe2403sp2: - path: 3.5.7/24.03-lts-sp2/Dockerfile \ No newline at end of file + path: 3.5.7/24.03-lts-sp2/Dockerfile +3.5.8-oe2403sp2: + path: 3.5.8/24.03-lts-sp2/Dockerfile \ No newline at end of file