Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic user configuration to image. #22

Merged
merged 1 commit into from
May 30, 2020

Conversation

whitingjr
Copy link
Collaborator

@whitingjr whitingjr commented Apr 6, 2020

This PR solves the issue #21
This PR looks to add nss_wrapper module to the image. Allowing Openshift to add a user with a dynamic id and the image still recognizing the Dockerfile selected user.
This is done by re-writing the passwd file with the id. A template passwd file is included and added to the image. This is populated at runtime with the new id of the user.

The call to dumb-init has been updated to call the setup-user.sh bash script before starting the jvm process. Using the technique to call additional bash scripts documented in the dumb-init repository.

@whitingjr whitingjr requested a review from jdcasey April 6, 2020 14:03
@whitingjr whitingjr mentioned this pull request Apr 8, 2020
@jdcasey jdcasey merged commit ff203d9 into Commonjava:master May 30, 2020
@whitingjr
Copy link
Collaborator Author

The changes added in this PR do not implement the desired behaviour.
That's because the tool nss_wrapper relied upon for Openshift integration is not recognized/called by JDK tooling.

@whitingjr
Copy link
Collaborator Author

There additional changes necessary for the nss_wrapper to be recognized correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants