Checko
Checko

Reputation: 41

Error when trying to run a meteor app in docker using meteorhacks:meteord

I have just began playing around with docker. While trying out method 1 from meteorhacks:meteord, I get the folowing error

=> You don't have an meteor app to run in this image.

Here is what I have done after creating the basic counter demo meteor app.

 docker build -t app .
Sending build context to Docker daemon 11.75 MB
Step 0 : FROM meteorhacks/meteord:base
 ---> 528baf8d4263
Step 1 : MAINTAINER MeteorHacks Pvt Ltd.
 ---> Running in 6d7e7eb6ebce
 ---> d69fefdbeb70
Removing intermediate container 6d7e7eb6ebce
Step 2 : ONBUILD copy ./ /app
 ---> Running in e68618104dfa
 ---> c253ae966ea1
Removing intermediate container e68618104dfa
Step 3 : ONBUILD run bash $METEORD_DIR/on_build.sh
 ---> Running in e51e557c2b05
 ---> a6a6a1be9147
Removing intermediate container e51e557c2b05
Successfully built a6a6a1be9147

then ( I already initiated a mongo container exposing 27017 and grabbed the internal ip address which was 171.17.0.1)

docker run -d \
    -e ROOT_URL=http://localhost:3000 \
    -e MONGO_URL=mongodb://172.17.0.1:27017/ \
    -e MONGO_OPLOG_URL=mongodb://172.17.0.1:27017/ \
    -p 8080:80 \
    app 

I get the error when I do this and then run docker logs <container id>

Can someone guide me on this?

Thanks in advance.

Upvotes: 4

Views: 640

Answers (1)

VonC
VonC

Reputation: 1323433

This error comes from scripts/run_app.sh, which is the ENTRYPOINT of the base Dockerfile.

It checks for the presence of:

  • /bundle folder, or
  • /built_app, or
  • $BUNDLE_URL

If your counter demo Dockerfile didn't populate /bundle or /built_app folders, then you need to make sure you are defining ENV BUNDLE_URL with the right url.

Upvotes: 2

Related Questions