Dynamic container vars and locale Settings #186
Merged
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.
You just have to set
-e LANG=de_DE.UTF-8
(or other language code) to have it present in RStudio. If you want to have all locale Settings present in an stand alone R-Session you have to set-e LC_ALL=de_DE.UTF-8 -e LANG=de_DE.UTF-8
. TheLANG
ENV-Var generates the needed loacle filesLC_ALL
is for convenience in a custom CMD overwrite (standalone R-Session).Bcause the Timezone Setting is much easier, in any case you can use
-e TZ=Europe/Berlin
(or other Timezone) to use it in standalone R and/or RStudio.No need to write custom Dockerfile for localization 🎉
There is a bug, that the script says, that it is not able to set "LC_ALL" because there where no file, but this is not effecting anything, because the locale files are properly generated.... maybe this is an restart issue, because we are not restarting like it would be when we doing it in a Dockerfile before running CMD or ENTRYPOINT.
Hoping that I did everything correct.
This is my first PR ever ✌