Giter Club home page Giter Club logo

Comments (4)

Jammjammjamm avatar Jammjammjamm commented on June 3, 2024 1

Thanks for the report, we will look into this. In the meantime, Inferno can be run in docker without nginx. I don't use windows, so the commands might not be exactly the same, but this is how I would build and run Inferno:

docker build -t inferno .
docker run -p 4567:4567 inferno

If you don't have any local changes you need to include, you can instead download and run a prebuilt image:

docker pull onchealthit/inferno
docker run -p 4567:4567 onchealthit/inferno

After doing one of these, Inferno should be available at localhost:4567.

from inferno-community.

js8080 avatar js8080 commented on June 3, 2024

I've been investigating this further. It seems this may be an issue with containers running on Windows. At the very end of this article, the author states:

One quirk remains. You still can't mount a single file as a volume, you'll get invalid mount config for type "bind": source path must be a directory

https://blog.sixeyed.com/what-you-can-do-with-docker-in-windows-server-2019-that-you-couldnt-do-in-windows-server-2016/

The strange thing is that this same docker-compose.yml entry works on my Windows 10 PC:

  nginx_server:
    image: nginx
    volumes:
      - ./deployment-files/nginx.conf:/etc/nginx/nginx.conf:ro
    ports:
      - "8080:80"
    command: [nginx, '-g', 'daemon off;']
    links:
      - ruby_server:ruby_server
    depends_on:
      - ruby_server

from inferno-community.

js8080 avatar js8080 commented on June 3, 2024

I tried working around this by copying the ./deployment-files/nginx.conf from my host machine to the nginx image in the Inferno\Dockerfile:

# added this section to copy nginx.conf instead of overriding it via volume mapping in docker-compose.yml
FROM nginx:latest
COPY ./deployment-files/nginx.conf /etc/nginx/nginx.conf
# end my addition

FROM ruby:2.5

# Install gems into a temporary directory
COPY Gemfile* ./
RUN gem install bundler && bundle install

# Expose the port
EXPOSE 4567

Then in the docker-compose.yml file I commented out the volumes portion of the nginx_server section:

  nginx_server:
    image: nginx
    #volumes:
    #  - ./deployment-files/nginx.conf:/etc/nginx/nginx.conf:ro
    ports:
      - "8080:80"

That got docker-compose up to work but when I browse to http://localhost:8080/ it just shows a generic "Welcome to nginx!" message and not the Inferno-specific page.

from inferno-community.

js8080 avatar js8080 commented on June 3, 2024

@Jammjammjamm That worked -- I did the latter and ran the prebuilt image. Thanks!

from inferno-community.

Related Issues (20)

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.