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

Can't build image #95

Open
espoal opened this issue Apr 19, 2016 · 6 comments
Open

Can't build image #95

espoal opened this issue Apr 19, 2016 · 6 comments

Comments

@espoal
Copy link

espoal commented Apr 19, 2016

Hi guys,

i'm using ubuntu 15.10 for my host, and I'm trying to build your image, anyhow it fails.

Could it be due to a locale issue? I'm trying to find a workaround for this.

root@lalande:/ozone/dockerfiles/meteord# docker build -t ozonetmt .
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM meteorhacks/meteord:onbuild
# Executing 2 build triggers...
Step 1 : COPY ./ /app
 ---> Using cache
Step 1 : RUN bash $METEORD_DIR/on_build.sh
 ---> Running in 99f7b45992bd
Downloading Meteor distribution

Meteor 1.3.2.2 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.

To get started fast:

  $ meteor create ~/my_cool_app
  $ cd ~/my_cool_app
  $ meteor

Or see the docs at:

  docs.meteor.com

build: You're not in a Meteor project directory.

To create a new Meteor project:
  meteor create <project name>
For example:
  meteor create myapp

For more help, see 'meteor --help'.
The command '/bin/sh -c bash $METEORD_DIR/on_build.sh' returned a non-zero code: 1
@jshimko
Copy link
Member

jshimko commented Apr 19, 2016

Did you definitely run this from a Meteor app directory?

@espoal
Copy link
Author

espoal commented Apr 19, 2016

no, the folder is called meteord to highlight that it contains the dockerfile of meteord. Meteor or nodejs are non installed on the host.

@espoal espoal closed this as completed Apr 19, 2016
@espoal espoal reopened this Apr 19, 2016
@jshimko
Copy link
Member

jshimko commented Apr 19, 2016

I think you might be misunderstanding how this image is intended to be used. It's a base image for building your Meteor app in a Docker container. You create a Dockerfile in the root of a Meteor app with FROM meteorhacks/meteord:onbuild in it, then run the build command. This project doesn't create an app for you - it copies yours into the container.

@espoal
Copy link
Author

espoal commented Apr 19, 2016

No I think I got it right. I was trying simply to build the container, but I got the error. Should I add a meteor app to make it work? I can't generate the container without an app?

@DesignMonkey
Copy link

I get the same problem on my staging server. Not on my live server. If i try building image on the small staging I get the error, but runs fine on the other. Does that make any sense?

@Flavien-Pensato
Copy link

Your Meteor version is above the 1.3 ?

Try this image: abernix/meteord:onbuild

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

4 participants