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

How to configure docker image to use unicode ? #683

Closed
msohn opened this issue Mar 10, 2016 · 5 comments
Closed

How to configure docker image to use unicode ? #683

msohn opened this issue Mar 10, 2016 · 5 comments

Comments

@msohn
Copy link

msohn commented Mar 10, 2016

  • install Che 4.0.0 RC11 on Mac OS X 10.11.3
  • create a new project for jgit
  • clone jgit git repository from https://git.eclipse.org/r/jgit/jgit
  • open project in Che
  • open terminal in Che
  • run
    $mvn install
    in root folder of jgit's source tree
    -> build and tests take ~54min (directly on my Mac they take around 3min)
  • some tests fail since locale in docker image is POSIX

How can I configure the docker image to use LC_ALL="en_US.UTF-8" ?
I think it would make sense to configure this by default

@ghost
Copy link

ghost commented Mar 11, 2016

Yes, LC_ALL="en_US.UTF-8" does make sense.

As to JGit.. probably you have a local maven repo with all the deps. Also, how much RAM did you allocate for a workspace where JGit was built? This also matters.

@ghost
Copy link

ghost commented Mar 11, 2016

I have updated all base images. It should be OK now.

Feel free to reopen the issue if it does not work for you.

@ghost ghost closed this as completed Mar 11, 2016
@msohn
Copy link
Author

msohn commented Mar 12, 2016

Thanks, this fixed the unicode problems I had running jgit tests.

Now I would like to tackle the poor performance I see for the jgit Maven build.
I tried with 2GB RAM and 4 cores for the VirtualBox image, but mvn clean install for jgit still takes 54min,
running the same locally takes 3-4min only.

Also loosing the .m2 directory when restarting the workspace comes with a high price since after restarting the workspace Maven has to download all dependencies again which takes quite a while.
How can I mount maven.home to a directory on the host system similarily how the /projects folder is mounted ?

@TylerJewell
Copy link

Let's open a new issue for this particular performance issue. And we can get a good dialog going to discuss options.

@msohn
Copy link
Author

msohn commented Mar 12, 2016

ok, I filed #694 for this

This issue was closed.
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

No branches or pull requests

2 participants