diff --git a/mimir/2.11.0/22.03-lts-sp3/Dockerfile b/mimir/2.11.0/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..31f6c4c3277db169bc3c1a22f6c8d1e17226a670 --- /dev/null +++ b/mimir/2.11.0/22.03-lts-sp3/Dockerfile @@ -0,0 +1,13 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=2.11.0 + +RUN yum -y update && yum -y install wget && yum clean all && \ + wget -O mimir.rpm https://github.com/grafana/mimir/releases/download/mimir-${VERSION}/mimir-${VERSION}_${TARGETARCH}.rpm && \ + yum -y install mimir.rpm && \ + rm -rf mimir.rpm + +EXPOSE 8080 +ENTRYPOINT ["mimir"] diff --git a/mimir/README.md b/mimir/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3be485d3ae567c68b976be0daa8fbcf7401035c9 --- /dev/null +++ b/mimir/README.md @@ -0,0 +1,30 @@ +# Mimir + +# Quick reference + +- The official mimir docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/mimir:$TAG" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +2. Run: +```shell +docker run -d -p 8080:8080 openeuler/mimir:$TAG +``` + +# Supported tags and respective Dockerfile links + +- 2.11.0-oe2203sp3: mimir v2.11.0, openEuler 22.03-LTS-SP3 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. diff --git a/mimir/doc/image-info.yml b/mimir/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..62767a15d2ad8d7905a53bf359afddf46e9125c5 --- /dev/null +++ b/mimir/doc/image-info.yml @@ -0,0 +1,88 @@ +name: mimir +category: cloud +description: Grafana Mimir是一个开源软件项目,为Prometheus提供可扩展的长期存储。 +environment: | + 本应用以容器镜像的方式供用户使用,运行于预置docker的Linux环境。Docker的推荐安装方式如下: + ## apt安装 + ### 1.更新系统软件包依赖 + ``` + sudo spt update + sudo apt install ca-certificates curl gnupg lsb-release + ``` + ### 2.添加Docker官方GPG密钥 + ``` + sudo mkdir -p /etc/apt/keyrings + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg + sudo chmod a+r /etc/apt/keyrings/docker.gpg + ``` + ### 3.添加Docker官方APT源 + ``` + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + ``` + ### 4.再次更新软件包索引 + ``` + sudo apt update + ``` + ### 5.安装Docker + ``` + sudo apt install docker-ce docker-ce-cli containerd.io + ``` + + ## yum安装 + ### 1.安装yum-utils + ``` + sudo yum install -y yum-utils + ``` + ### 2.添加Docker源 + ``` + sudo yum-config-manager \ + > --add-repo \ + > https://download.docker.com/linux/centos/docker-ce.repo + ``` + ### 3.安装Docker + ``` + sudo yum install -y docker-ce docker-ce-cli containerd.io + ``` + + 注意,在openEuler环境安装docker时,可执行如下命令一键安装 + ``` + yum install -y docker + ``` + + ## 脚本安装 + ### 1.下载安装脚本 + ``` + curl -fsSL https://get.docker.com -o get-docker.sh + ``` + ### 2.使用root权限执行脚本 + ``` + sudo sh get-docker.sh + ``` + 使用脚本安装方式时,如果用户要指定安装的docker版本,需要自行修改`get-docker.sh`的源码内容。 + + ## 验证 + ``` + sudo docker run hello-world + ``` + +download: | + 获取容器镜像 + ``` + docker pull openeuler/mimir:{TAG} + ``` + +install: | + 启动容器 + ``` + docker run --name mimir -p 8080:8080 openeuler/mimir:{TAG} + ``` + 用户可根据自身需求,自定义启动选项。 + +license: MIT license +similar_packages: + - M3: M3是Uber开源的一个Prometheus长期存储的方案,它的组件主要包括M3 Coordinate、M3 Queries、M3 Aggregator及M3DB。 + - VictoriaMetrics: VictoriaMetrics是一个开源的Prometheus长期存储项目,除开源项目外,还有商业化的产品和服务。VictoriaMetrics的采用者包括知乎、Grammarly、http://fly.io、CERN等。 + - Thanos: Thanos由Improbable开源,是社区最先出现的Prometheus长期存储方案,采用者包括Adobe、字节、eBay、腾讯等。 + - Cortex: Cortex由Grafana开源,Loki、Tempo、Grafana Cloud等产品或项目都采用了Cortex的技术。采用者包括AWS、Digital Ocean、Grafana Labs、MayaData、Weaveworks等。 +dependency: + - N/A \ No newline at end of file diff --git a/mimir/doc/picture/logo.png b/mimir/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..4673dd7feb3c52552c051c1f101ffbe1966d40ce Binary files /dev/null and b/mimir/doc/picture/logo.png differ diff --git a/mimir/meta.yml b/mimir/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..85284fddb470285cf9e55272d8b022837e51ab56 --- /dev/null +++ b/mimir/meta.yml @@ -0,0 +1,2 @@ +2.11.0-oe2203sp3: + - mimir/2.11.0/22.03-lts-sp3/Dockerfile \ No newline at end of file diff --git a/prometheus/README.md b/prometheus/README.md index e02293b91c43988747fd565ccd7d9e6c704269f3..684690d0f8511a33312220b72be9d8677e3ea4b2 100644 --- a/prometheus/README.md +++ b/prometheus/README.md @@ -25,6 +25,7 @@ docker run --name my_prometheus -d -p 9090:9090 openeuler/prometheus:$VERSION # Supported tags and respective Dockerfile links - 2.20.0-22.03-lts: prometheus v2.20.0, openEuler 22.03 LTS +- 2.50.1-oe2203sp3: prometheus v2.50.1, openEuler 22.03 LTS SP3 ## Operating System Linux/Unix, ARM64 or x86-64 architecture.