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

Fix locale in CentOS based image #4056

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

l0rd
Copy link
Contributor

@l0rd l0rd commented Feb 8, 2017

What does this PR do?

What issues does this PR fix or reference?

When using CentOS based image a lot of UnmappableCharacterException are logged in che-server output when creating a new workspace. This is related to this issue in CentOS base image: CentOS/sig-cloud-instance-images#71

Changelog

Fix bad locale in CentOS based image

Release Notes

Improved CentOS based Che docker image

Docs PR

That's a fix. No docs needed

@l0rd l0rd requested review from a user and benoitf February 8, 2017 11:44
@codenvy-ci
Copy link

Can one of the admins verify this patch?

@l0rd
Copy link
Contributor Author

l0rd commented Feb 8, 2017

@l0rd l0rd added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Feb 8, 2017
@l0rd l0rd changed the title Fix locale in CentoOS based image Fix locale in CentOS based image Feb 8, 2017
@benoitf benoitf requested a review from JamesDrummond February 8, 2017 12:16
@benoitf benoitf added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 8, 2017
# --name che \
# -v /var/run/docker.sock:/var/run/docker.sock \
# -v ~/.che/workspaces:/data \
# eclipse/che-server:nightly
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure we want to require nightly. eclipse/che-server:nightly => eclipse/che-server. Should change -v ~/.che/workspaces:/data => -v <LOCAL_PATH>:/data.

Copy link
Contributor

Choose a reason for hiding this comment

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

about the first point if you use build script by default it will produce nightly so if you need to run this newly image you'll have to use that version

Copy link
Contributor

Choose a reason for hiding this comment

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

Still not sure if nightly should be used. Who will use the dockerfile? Seems better to allow user to choose version. Seems like it possible but I have not investigated https://github.com/eclipse/che/blob/master/dockerfiles/build.include#L33 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JamesDrummond I like ~/.che/ more because I can just copy paste and it works. I don't need an extra step of editing the command. But I understand you want to make it clear that the path is configurable. I just wanted to be sure that you understand why I prefer ~/.che/ (and potentially other users would prefer it too). If you still think that setting <LOCAL_PATH> is a better choice I will change that.

What is the issue with nightly? I understand you want to change that but I don't understand why. I'm asking because in the past I've fixed an issue with non nightly tags and I ran into another issue recently. So when I build it I usually use the default tag (nightly) to improve my chance to build/run successfully.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is why I ask who are the users going to be for the dockerfile. ~/.che will not work on a windows machine. Using nightly label is fine but I don't think it should be required. What if you want to produce a stable version of the centos to host on a repo such as dockerhub. Again I am not sure of the use case of this dockerfile. If you would like to keep ~/.che and nightly in place because that is what the target use will be I can approve. Just let me know.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

James this Dockerfile is an alternative to the che-server alpine based Dockerfile. The image should be used by individuals or organizations that prefer running Che on CentOS then alpine.

Instructions in the Dockerfiles should be for developers that know what they are doing and want hack the Dockerfile (to fix a bug in the Dockerfile for example). A user that just want to run the image should pull the pre-built images available from the Dockerhub and in registry.centos.org (and run it using the CLI).

Copy link
Contributor

Choose a reason for hiding this comment

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

Great thanks.

@l0rd l0rd merged commit 0e24910 into eclipse-che:master Feb 8, 2017
@l0rd l0rd removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Feb 8, 2017
@l0rd l0rd added this to the 5.3.0 milestone Feb 9, 2017
@JamesDrummond JamesDrummond mentioned this pull request Feb 17, 2017
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants