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

Docker-dev image won't build on Docker for Mac #117

Closed
jamesgrobertson opened this issue Aug 10, 2016 · 2 comments
Closed

Docker-dev image won't build on Docker for Mac #117

jamesgrobertson opened this issue Aug 10, 2016 · 2 comments

Comments

@jamesgrobertson
Copy link

Get the following when I try to build an image using the Docker-dev Dockerfile:

Unexpected` mongo exit code 1. Restarting.     
Can't start Mongo server.                     
MongoDB failed global initialization

Looks like MongoDB doesn't understand your locale settings. See
https://github.com/meteor/meteor/issues/4019 for more details.

From what I can tell, MongoDB won't start because the locale of the default docker machine isn't correct. I can't figure out how to set a locale that MongoDB will understand, either, because the package to generate new locales isn't installed, and it looks like there isn't a package manager on the machine either.

This is what I'm trying to follow to fix the issue: http://jaredmarkell.com/docker-and-locales/

@jamesgrobertson
Copy link
Author

jamesgrobertson commented Aug 11, 2016

Sorry, I mixed up a fundamental part of how Docker works and I'm sorry for that. It has nothing to do with Docker for Mac. But, the locale on the base Debian image still isn't correct, and I'm having a hard time changing it, even after installing the locales package. I'm still trying to resolve it.

Since I'm somewhat unfamiliar with this application/repo, is the development Docker image/container supposed to run its own instance of MongoDB, or should one attach a separate MongoDB container to it, as you do with the production image? If so, the documentation should be updated.

@jamesgrobertson
Copy link
Author

I was able to get a dev container booted by adding the following line to the Dockerfile:

RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && localedef -i en_US -f UTF-8 en_US.UTF-8

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

1 participant