Skip to content

Commit 9c93163

Browse files
authored
Fix building wildfly docker image (#11998)
1 parent 0cfe778 commit 9c93163

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

smoke-tests/images/servlet/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
22
import com.bmuschko.gradle.docker.tasks.image.DockerPushImage
3-
import org.gradle.configurationcache.extensions.capitalized
3+
import org.apache.commons.lang.StringUtils
44

55
plugins {
66
id("otel.spotless-conventions")
@@ -104,7 +104,7 @@ tasks {
104104
continue
105105
}
106106
println(server)
107-
val serverName = server.capitalized()
107+
val serverName = StringUtils.capitalize(server)
108108
for (entry in matrices) {
109109
for (version in entry.version) {
110110
val dotIndex = version.indexOf('.')

smoke-tests/images/servlet/src/wildfly.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG baseDownloadUrl
88
# The user ID 1000 is the default for the first "regular" user on Fedora/RHEL,
99
# so there is a high chance that this ID will be equal to the current user
1010
# making it easier to use volumes (no permission issues)
11-
RUN groupadd -r jboss -g 1000 && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss && \
11+
RUN groupadd -r jboss -g 1001 && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss && \
1212
chmod 755 /opt/jboss
1313

1414
# Set the working directory to jboss' user home directory

0 commit comments

Comments
 (0)