Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Explicitly get latest base image and update packages before installat…
Browse files Browse the repository at this point in the history
…ion (#359)
  • Loading branch information
seglo committed Apr 22, 2022
1 parent 45b94b7 commit 6318c8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Kafka Lag Exporter [![gh-release-badge][]][gh-release] [![gh-actions-badge][]][g
==================

[gh-release]: https://github.com/seglo/kafka-lag-exporter/releases
[gh-release-badge]: https://img.shields.io/github/v/release/lightbend/kafka-lag-exporter?include_prereleases
[gh-release-badge]: https://img.shields.io/github/v/release/seglo/kafka-lag-exporter?include_prereleases
[gh-actions]: https://github.com/seglo/kafka-lag-exporter/actions
[gh-actions-badge]: https://github.com/seglo/kafka-lag-exporter/workflows/CI/badge.svg?branch=master
[license]: https://github.com/seglo/kafka-lag-exporter/blob/master/LICENSE.txt
Expand Down Expand Up @@ -333,7 +333,7 @@ kafka-lag-exporter {

### Run as Java App

Download the release **zip** file (`kafka-lag-exporter-{VERSION}.zip`) from the [GitHub release](https://github.com/lightbend/kafka-lag-exporter/releases) page.
Download the release **zip** file (`kafka-lag-exporter-{VERSION}.zip`) from the [GitHub release](https://github.com/seglo/kafka-lag-exporter/releases) page.
Extract its contents and run the `./bin/kafka-lag-exporter` shell script.

Ex)
Expand All @@ -356,7 +356,7 @@ Ex)
```
docker run -p 8000:8000 \
-v $(pwd):/opt/docker/conf/ \
lightbend/kafka-lag-exporter:0.7.0 \
seglo/kafka-lag-exporter:0.7.0 \
/opt/docker/bin/kafka-lag-exporter \
-Dconfig.file=/opt/docker/conf/application.conf \
-Dlogback.configurationFile=/opt/docker/conf/logback.xml
Expand Down Expand Up @@ -387,7 +387,7 @@ Last Group Offsets:
group-1-1 topic-1-2 0 5
```

If installing with Helm then you can enable `DEBUG` logging with the `kafkaLogLevel` configuration in the chart's `[values.yaml](https://github.com/lightbend/kafka-lag-exporter/blob/master/charts/kafka-lag-exporter/values.yaml)`.
If installing with Helm then you can enable `DEBUG` logging with the `kafkaLogLevel` configuration in the chart's `[values.yaml](https://github.com/seglo/kafka-lag-exporter/blob/master/charts/kafka-lag-exporter/values.yaml)`.

When running in standalone mode you can either define assign the `KAFKA_LAG_EXPORTER_KAFKA_LOG_LEVEL` environment variable to `DEBUG`, or override the log level of `com.lightbend.kafkalagexporter` directly in the `logback.xml`.

Expand Down Expand Up @@ -521,7 +521,7 @@ If you want to build your own Helm Chart and accompanying docker images you can
username with environment variables.

`DOCKER_REPOSITORY` - A custom Docker repository, such as a private company's docker repository (defaults to DockerHub)
`DOCKER_USERNAME` - A custom Docker username (defaults to `lightbend`)
`DOCKER_USERNAME` - A custom Docker username (defaults to `seglo`)

Run the `updateHelmChart` sbt task to update the Helm Chart with the appropriate Docker repository and username.

Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ lazy val kafkaLagExporter =
val path = layerId.map(i => s"$i/$files").getOrElse(s"$files")
Cmd("COPY", s"$path /$files")
}
Seq(Cmd("FROM", "redhat/ubi8")) ++
Seq(Cmd("FROM", "redhat/ubi8:latest")) ++
Seq(
Cmd(
"RUN",
"yum -y install java-17-openjdk-headless && yum update -y && yum clean all -y"
"yum update -y && yum -y install java-17-openjdk-headless && yum clean all -y"
),
Cmd("RUN", "useradd -r -m -u 1001 kafkalagexporter")
) ++
Expand Down

0 comments on commit 6318c8e

Please sign in to comment.