Skip to content

Commit

Permalink
Fix building wildfly docker image (#11998)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Aug 13, 2024
1 parent 0cfe778 commit 9c93163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions smoke-tests/images/servlet/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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('.')
Expand Down
2 changes: 1 addition & 1 deletion smoke-tests/images/servlet/src/wildfly.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c93163

Please sign in to comment.