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 Swarm - Manager unreachable but status still ready
  • Docker tomcat WARNING: Unable to load server configuration from [/usr/local/tomcat/conf/server.xml]
  • Duplicate mappings when building docker package using sbt-native-packager
  • Wierd Docker DNS error referencing C file?
  • How use Dokku with django?
  • Hashes in `docker pull wordpress`
  •  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.

  • How to use COPY command in Docker build?
  • Issue with docker compose db2-express c
  • Running commands inside Docker Container
  • Can I bundle the Oracle JDBC driver JAR in a Docker image?
  • Docker ps disappeared after restart system
  • Screen within Docker from ssh
  • One Solution collect form web for “Error when trying to run a meteor app in docker using meteorhacks:meteord”

    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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.