-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adduser not found on amazoncorretto:11 #1427
Comments
Thanks @jmcnulty-mosaic for the detailed issue 🤗 If you don't need a special user you can deactivate this by adding Docker / daemonUserUid := None,
Docker / daemonGroupGid := None If you do require this feature then what's the equivalent call in the amazon corretto docker image? |
Thanks muuki88 for the quick response. Looks like my build does need that user so I'll need to figure out the answer to your question. I'm finding contradictory info so far so I've got a ways to go. Amazon Corretto should be Debian and Debian allegedly has adduser. I say "should be" since I haven't connected all the dots yet from the corretto:11 Dockerfile to a debian distribution and the fact that adduser clearly isn't present raises some doubt. I'll update this ticket with what I find once I have verified the details myself. |
I can work around this with: dockerBaseImage := "amazoncorretto:11",
dockerCommands := {
val commands = dockerCommands.value
val index = commands.indexWhere {
case Cmd("RUN", args @ _*) => args.contains("demiourgos728")
case _ => false
}
commands.patch(index, Seq(ExecCmd("RUN", "yum", "-y", "install", "shadow-utils")), 0)
}, This will install the required dependencies before the
But it does feel a bit messy. |
Another workaround is to use EDIT: although alpine does not include |
Another workaround: daemonUserUid in Docker := None,
daemonUser in Docker := "daemon" |
Thanks for sharing everything you tried and worked. Regarding the alpine / bash issue. There's an |
Expected behaviour
Latest version of sbt-native-packager resolves this issue: #1262
However I am still seeing this with the latest version of sbt-native-packager 1.7.6 when I
sbt docker:publishLocal
This happened after I updated my base image to amazoncorretto:11. This was the only change in the project.
Actual behaviour
sbt docker:publish
failsInformation
, my project/plugins.sbt:
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.6")
The native packager settings that I added to my project:
dockerBaseImage := "amazoncorretto:11"
My build error:
rpm --version
)The text was updated successfully, but these errors were encountered: