This PR fixes the error that occurs when attempting to modify (via groupmod) the GID of the ignition user to a group ID that already exists within the base image. It now simply skips that remapping for both UID and GID.
Additionally, the gosu invocation now sets both the UID and primary group ID for the launch of the Ignition gateway.
Note: if you must use an existing UID that happens to not have a valid home directory available in the base Ubuntu image, you might need to supply -Djava.util.prefs.userRoot=data as a JVM prop to redirect the Java Preferences user source into the Ignition install folder.
⚙️ Summary
This PR fixes the error that occurs when attempting to modify (via
groupmod
) the GID of theignition
user to a group ID that already exists within the base image. It now simply skips that remapping for both UID and GID.Additionally, the
gosu
invocation now sets both the UID and primary group ID for the launch of the Ignition gateway.Note: if you must use an existing UID that happens to not have a valid home directory available in the base Ubuntu image, you might need to supply
-Djava.util.prefs.userRoot=data
as a JVM prop to redirect the Java Preferences user source into the Ignition install folder.Fixes #125