diff --git a/karma/0.120/24.03-lts/Dockerfile b/karma/0.120/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..66dee35d13325895f26a705efd750b59059abec1 --- /dev/null +++ b/karma/0.120/24.03-lts/Dockerfile @@ -0,0 +1,16 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=0.120 + +RUN yum update -y && yum install -y wget && \ + wget -O karma.tar.gz https://github.com/prymitive/karma/releases/download/v${VERSION}/karma-linux-${TARGETARCH}.tar.gz && \ + tar -zxvf karma.tar.gz -C /usr/bin/ && \ + mv /usr/bin/karma-linux-${TARGETARCH} /usr/bin/karma && \ + chmod +x /usr/bin/karma && \ + rm -rf karma.tar.gz && \ + yum remove -y wget && yum clean all + +EXPOSE 8080 +ENTRYPOINT ["karma"] \ No newline at end of file diff --git a/karma/README.md b/karma/README.md new file mode 100644 index 0000000000000000000000000000000000000000..41f74cb5b4d2af300ec093b3ba0c6bbf6bcbb001 --- /dev/null +++ b/karma/README.md @@ -0,0 +1,47 @@ +# Quick reference + +- The official Karma 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). + +# karma | openEuler +Current karma docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +Karma is an alert dashboard for Prometheus Alertmanager. Alertmanager UI is useful for browsing alerts and managing silences, but it’s lacking as a dashboard tool - karma aims to fill this gap. + +Learn more on [karma website](https://karma-dashboard.io). + + +# Supported tags and respective Dockerfile links +The tag of each karma docker image is consist of the version of karma and the version of basic image. The details are as follows +| Tags | Currently | Architectures| +|--|--|--| +|[0.120-oe2403lts](https://gitee.com/openeuler/openeuler-docker-images/blob/master/karma/0.120/24.03-lts/Dockerfile)| Karma 0.120 on openEuler 24.03-LTS | amd64, arm64 | + + +# Usage +- Launch this image locally: + + ```bash + docker run -d --name my-karma -p 8080:8080 openeuler/karma:0.120-oe2403lts + ``` + After the instance `my-karma` is started, access Karma instance at `http://localhost:8080`. + +- Parameters: + | Parameter | Description | + |--|--| + | `-p 8080:8080` | Expose Karma on `localhost:9092`. | + +- To debug the container + ```bash + docker logs -f my-karma + ``` +- To get an interactive shell + ```bash + docker exec -it my-karma /bin/bash + ``` + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/karma/doc/image-info.yml b/karma/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..04a98800334d63dec00ec735d1acf9d4b7f3c335 --- /dev/null +++ b/karma/doc/image-info.yml @@ -0,0 +1,52 @@ +name: karma +category: cloud +description: Karma是Prometheus Alertmanager的警报仪表板。虽然Alertmanager UI对于查看警报和管理沉默很有用,但它缺乏作为仪表板工具的功能,而karma填补了这一空白。 +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + karma镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[0.120-oe2403lts](https://gitee.com/openeuler/openeuler-docker-images/blob/master/karma/0.120/24.03-lts/Dockerfile)| Karma 0.120 on openEuler 24.03-LTS | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/karma:{Tag} + ``` + 注意,使用karma要求Alertmanager版本 >= 0.22.0。 + +usage: | + - 启动容器 + ``` + docker run -d --name my-karma -p 8080:8080 openeuler/karma:{Tag} + ``` + 用户可根据自身需求选择对应版本的{Tag}、容器启动的选项。`my-karma`启动之后,通过`http://localhost:8080`访问服务。 + + - 启动参数 + + | Parameter | Description | + |----------------|---------------| + | `-p 8080:8080` | 通过`http://localhost:8080`访问服务 | + + - 容器测试 + + 查看运行日志 + ``` + docker logs -f my-karma + ``` + + 使用shell交互 + ``` + docker exec -it my-karma /bin/bash + ``` + +license: Apache-2.0 license +similar_packages: + - N/A +dependency: + - Alertmanager diff --git a/karma/doc/logo.png b/karma/doc/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..04612faa412d20350b22ac406a17ce9848fce596 Binary files /dev/null and b/karma/doc/logo.png differ diff --git a/karma/meta.yml b/karma/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..d8bf479929e47aa630990efdb4b90befd4abdc18 --- /dev/null +++ b/karma/meta.yml @@ -0,0 +1,2 @@ +0.120-oe2403lts: + path: karma/0.120/24.03-lts/Dockerfile