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

[GH-1889] Use arguments for uid and gid, add group and user, re-work order of commands to make dirs and change ownership #1890

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

kinow
Copy link
Member

@kinow kinow commented May 30, 2023

GitHub issue resolved #1889

Pull request Description:

Moves adduser to final layer only (we were creating and then copying /etc/passwd). Runs addgroup before, and uses a fixed uid/gid for user and group.

Create base directory, changes ownership, and then switches to the Jena user in Docker. That creates everything else with the correct uid/gid/ownership.


  • Tests are included.
  • Documentation change and updates are provided for the Apache Jena website
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx or JENA-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

@kinow
Copy link
Member Author

kinow commented May 30, 2023

I adapted this code from the Micromamba docker recipe 👍

ARG JENA_UID=1000

# Run as this user
# -H : no home directorry
Copy link
Member Author

@kinow kinow Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will push force just to rebase & fix this (copied) typo (s/directorry/directory), then merge 👍

…-work order of commands to make dirs and change ownership
@kinow kinow merged commit 26153af into apache:main Jun 1, 2023
@kinow kinow deleted the GH-1889 branch June 1, 2023 19:07
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.

Use uid and gid 1000 for Jena Fuseki Dockerfile
3 participants