Skip to content

Commit

Permalink
Set docker daemon user to 'ubuntu' (#173)
Browse files Browse the repository at this point in the history
The current `eclipse-temurin:21-jre` image has now a user already
present with `uid=1000`. So creating `searchuser` fails when building
the image. The comment above indicates, that it is necessary to have a
user with this specific `uid=1000`. So this change switches to the
pre-installed `ubuntu` user to fix this.
  • Loading branch information
eikek authored Jul 26, 2024
1 parent 6c6395e commit 2f2366f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/DockerImagePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ object DockerImagePlugin extends AutoPlugin {
// dockerEntrypoint := Seq(s"bin/${executableScriptName.value}", "-Duser.timezone=UTC", "$JAVA_OPTS"),
dockerBaseImage := s"eclipse-temurin:21-jre",
// deamon uuid 1000 required by renku pod security context
Docker / daemonUserUid := Some("1000"),
Docker / daemonUser := "searchuser",
Docker / daemonUserUid := None,
Docker / daemonUser := "ubuntu", // current eclipse-temurin:21-jre has ubuntu user with uid 1000 pre-installed :/
// derive a package name
Docker / packageName := (Compile / name).value,
dockerRepository := Some("docker.io"),
Expand Down

0 comments on commit 2f2366f

Please sign in to comment.