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

👻 Improve running as non-root #87

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

jmontleon
Copy link
Member

@jmontleon jmontleon commented Jan 23, 2024

With this change we can at least run as non-root.

I would also proprose moving binaries that need to be accessible to all users be installed in /usr/local/bin. But as of right now it seems we have configs hard coded to this location.
https://github.com/konveyor/java-analyzer-bundle/blob/main/Dockerfile#L41

https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s09.html

https://github.com/konveyor/analyzer-lsp/blob/f6cdf400bf2c7e236b050f31300e9e504e241d78/provider_settings.json.sample#L8

We could probably keep the handling to /root/.m2 similar, except update the permissions changes to only adjust /root/.m2. Alternatively, set HOME=/ and set it up and adjust permissions there instead of linking it.

@jmontleon jmontleon force-pushed the improve-non-root branch 3 times, most recently from 77b00c0 to 1ec87df Compare January 23, 2024 19:08
@jmontleon jmontleon changed the title Improve running as non-root 👻 Improve running as non-root Jan 23, 2024
Signed-off-by: Jason Montleon <[email protected]>
@shawn-hurley
Copy link
Contributor

I think the soft link works, and then I think that we do need to the updates of binaries. We will have to make the changes in multiple PRs over the repos; I think that we can create a high-priority fix and get the basics working.

@shawn-hurley shawn-hurley merged commit 3e7c3f5 into konveyor:main Jan 24, 2024
4 checks passed
@shawn-hurley
Copy link
Contributor

Merging and on build will merge the analyzer-pr

@shawn-hurley shawn-hurley added the cherry-pick/release-0.3 This PR should be cherry-picked to release-0.3 branch. label Jan 24, 2024
github-actions bot pushed a commit that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-0.3 This PR should be cherry-picked to release-0.3 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants