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

Use newer centos image #168

Merged
merged 2 commits into from
Oct 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ lazy val kafkaLagExporter =
// Based on best practices found in OpenShift Creating images guidelines
// https://docs.openshift.com/container-platform/3.10/creating_images/guidelines.html
dockerCommands := Seq(
Cmd("FROM", "centos:7"),
Cmd("RUN", "yum -y install java-1.8.0-openjdk-headless && yum clean all -y"),
Cmd("FROM", "centos:8"),
Cmd("RUN", "yum -y install java-1.8.0-openjdk-headless && yum update -y && yum clean all -y"),
Cmd("RUN", "useradd -r -m -u 1001 -g 0 kafkalagexporter"),
Cmd("ADD", "opt /opt"),
Cmd("RUN", "chgrp -R 0 /opt && chmod -R g=u /opt"),
Expand Down