Fix building wildfly docker image (#11998)

This commit is contained in:
Lauri Tulmin 2024-08-14 00:51:03 +03:00 committed by GitHub
parent 0cfe778f35
commit 9c93163a9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
import com.bmuschko.gradle.docker.tasks.image.DockerPushImage
import org.gradle.configurationcache.extensions.capitalized
import org.apache.commons.lang.StringUtils
plugins {
id("otel.spotless-conventions")
@ -104,7 +104,7 @@ tasks {
continue
}
println(server)
val serverName = server.capitalized()
val serverName = StringUtils.capitalize(server)
for (entry in matrices) {
for (version in entry.version) {
val dotIndex = version.indexOf('.')

View File

@ -8,7 +8,7 @@ ARG baseDownloadUrl
# The user ID 1000 is the default for the first "regular" user on Fedora/RHEL,
# so there is a high chance that this ID will be equal to the current user
# making it easier to use volumes (no permission issues)
RUN groupadd -r jboss -g 1000 && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss && \
RUN groupadd -r jboss -g 1001 && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss && \
chmod 755 /opt/jboss
# Set the working directory to jboss' user home directory