thirdgen88 / ignition-docker

Ignition Docker Community Image
MIT License
72 stars 17 forks source link

Fixed error when IGNITION_GID matches existing group id #126

Closed thirdgen88 closed 1 year ago

thirdgen88 commented 1 year ago

⚙️ Summary

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.

Fixes #125