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

Commit

Permalink
Use newer centos image (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
killuazhu authored Oct 13, 2020
1 parent dd070fb commit 5af3ba4
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 5af3ba4

Please sign in to comment.