Store java preferences in the intended location #357
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Resolves:
Goals
Correct the Dockerfiles for Alpine, Centos, & Ubuntu to store both system and user java preferences in the intended location according to the code comments in the Dockerfiles:
Dockerfile comment:
docker-is/dockerfiles/centos/is/Dockerfile
Lines 87 to 88 in d0d177a
Approach
/home/wso2carbon/.java/.userPrefs
and not subdirectories.Release note
Allow WSO2IS to successfully store java system and user preferences without needing to give wso2carbon user R/W permissions to /etc/.java
Documentation
docker-is/dockerfiles/alpine/is/Dockerfile
Lines 93 to 94 in d0d177a
docker-is/dockerfiles/centos/is/Dockerfile
Lines 87 to 88 in d0d177a
docker-is/dockerfiles/ubuntu/is/Dockerfile
Lines 92 to 93 in d0d177a
Certification
N/A - Code changes made only to implement the intended behavior.
Automation tests
Security checks
Test environment
MacOS 12.5.1,
Docker Desktop 4.12.0 (85629), Docker Engine: 20.10.17
WSO2 Identity Server release 6.0.0