GithubHelp home page GithubHelp logo

node-inspector-docker's People

Contributors

kyriesent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ylarnellis

node-inspector-docker's Issues

Can't access the inspector

Hello,
I'm quite new to docker and this repo has been very useful to me, but as of today it's outdated.
I'm using docker 1.11.2 and can't run the example because of the many errors in the docker-compose.yml but I fixed them and it actually works.

However, given this docker-compose.yml:

version: "2"
services:
    app:
        build:
            dockerfile: Dockerfile-dev
            context: ./
        image: myapp
        ports:
            - '3000:3000'
            - '8081:8081'
            # needed by debugger
            - '8080:8080'
        volumes_from:
            - code

    debugger:
        image: node-debug
        depends_on: [app]
        # `service` instead of `container` for an easier cold start
        network_mode: 'service:app'
        volumes_from:
            - code

    code:
        image: node
        volumes:
            - './code:/app/code'

And this Dockerfile for node-debug:

FROM node
RUN npm install -g node-inspector
EXPOSE 8080 # I also tried without exposing the port
ENTRYPOINT ["node-debug"]

When I run docker-compose up, my app start and run as expected, BUT I cannot access the debugger even if I can see the message about listening on http://127.0.0.1:8080/?port=5858.

Any ideas?

Couldn't build the project

Thanks for this great example!

However, I couldn't make it work. When I run docker-compose up I get:

ERROR: Service 'node-app-inspector-instance' uses the network stack of container 'node-app' which does not exist.

It seems that docker checks if the container node-app exists before bringing everything up. And at this moment node-app is not yet created.

How did you manage to make it work?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.