Closed Ruilin-Ma closed 8 months ago
even simply running mvn liberty:devc
has this problem
even simply running mvn liberty:devc has this problem
Yes, but only on Linux. It is related to this PR which changed how the docker commands are built (ironically in order to handle embedded spaces within a parameter/option). It seems the user that is returned by a LInux OS command has a trailing space and therefore gets passed on the docker command as --user 0
. This causes the docker command to fail.
Error description
The following errors were encountered when attempting to execute
mvn liberty:devc -DcontainerRunOpts="-e DB_HOSTNAME=172.17.0.2" -DserverStartTimeout=240
on a Linux VM (RHEL and Ubuntu) using Liberty Maven Plugin version 3.10.1. The environment was configured with IBM Semeru Runtime Open Edition 11.0.22.0 and Maven 3.9.6.The issue was resolved by downgrading the LMP version to 3.10, and the Liberty dev container mode now runs properly. I'm wondering if any changes are required in the Dockerfile when upgrading LMP to 3.10.1.
Error log for the application working with LMP 3.10.1
Terminal log for application working with LMP 3.10 (Working scenario)