passenger-docker | Docker base images for Ruby , Python , Node.js and Meteor | Continuous Deployment library

 by   phusion Shell Version: rel-2.5.0 License: MIT

kandi X-RAY | passenger-docker Summary

kandi X-RAY | passenger-docker Summary

passenger-docker is a Shell library typically used in Devops, Continuous Deployment, Docker applications. passenger-docker has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Docker base images for Ruby, Python, Node.js and Meteor web apps
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              passenger-docker has a medium active ecosystem.
              It has 2717 star(s) with 347 fork(s). There are 76 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 25 open issues and 242 have been closed. On average issues are closed in 500 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of passenger-docker is rel-2.5.0

            kandi-Quality Quality

              passenger-docker has 0 bugs and 0 code smells.

            kandi-Security Security

              passenger-docker has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              passenger-docker code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              passenger-docker is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              passenger-docker releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              It has 278 lines of code, 8 functions and 8 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of passenger-docker
            Get all kandi verified functions for this library.

            passenger-docker Key Features

            No Key Features are available at this moment for passenger-docker.

            passenger-docker Examples and Code Snippets

            No Code Snippets are available at this moment for passenger-docker.

            Community Discussions

            QUESTION

            Why is Phusion Passenger timing out after roughly 60 seconds within docker container running a ruby app?
            Asked 2019-Oct-22 at 20:23

            I'm running a ruby sinatra app inside passenger within a docker container using one of the passenger-docker images(phusion/passenger-ruby26). This app is a simple web app that makes calls to a database(it does not constantly talk with the database, statements are only called when a certain button is clicked). I can start the app up fine and click around in my web app for a short amount of time but it always errors out at around 60 seconds of uptime saying:

            Could not spawn process for application /home/app/my_app: A timeout occurred while starting a preloader process.

            Error ID: 3b9633ef

            Error details saved to: /tmp/passenger-error-aFglsc.html

            Mind you this happens even when I don't click anything. Within the html file it states:

            The Phusion Passenger application server tried to start the web application, but this took too much time, so Passenger put a stop to that.

            It suggests that the server may be low on resources but I've given it unlimited resources(4 core 2.2GHz, 16GB ram, & 4GB swap), here are the load averages(memory used was 3%)

            Here is the 'Problem Location', shows that it errored out at the 'Load Application' subprocess.

            Things I've tried:

            • Running passenger from Nginx(same error)
            • Removing all stdout logging functions in my ruby app
            • Increasing passenger_start_timeout
            • Making sure folder/file privileges are set correctly
            • Starting passenger with a custom nginx-config-template that maxes out timeouts and resources
            • Gave my docker container unlimited resources

            Tried a few other miscellaneous things that I can't recall but those didn't prove effective either.

            Does anyone have any idea what might be going on? I'll provide more info if needed.

            Versions used:

            • Passenger 6.0.3
            • Ruby 2.6.3
            • Sinatra 2.0.5
            • Docker 18.09.0

            Running on MacOS 10.14.6

            ...

            ANSWER

            Answered 2019-Oct-22 at 20:23

            Resolved. Turned out to be that I was running my ruby app twice. Had two instances of the run myapp command in the main app.rb and the config.ru rackup config file. Should only have one instance of that in ruby project.

            Source https://stackoverflow.com/questions/58402906

            QUESTION

            How to define startup file in phusion/passenger-nodejs docker container
            Asked 2019-Oct-05 at 07:39

            I'm attempting to get a next.js app running in a docker container based on phusion/passenger-docker.

            I have what I think is a complete setup based on passenger-docker documentation but I'm getting a 404 page from nginx.

            A docker log dump shows that passenger or nginx, is looking for index.html

            ...

            ANSWER

            Answered 2019-Oct-05 at 07:39

            There are several subtle problems in the OP question.

            Most notably, Passenger seems to require that the app root path, defined by root in the nginx configuration above, has a top level folder named public. This folder must not contain an index.html file and probably should be empty. This is shown in examples, but not spelled out as a hard requirement in the docs.

            Second major error is that Passenger bypasses the port specified in the app's server.js (3000 in this case) and replaces it with the port specified in the nginx configuration. So the docker run command changed from:

            docker container run --name nhe_app -p 80:3000 nhe_app

            to

            docker container run --name nhe_app -p 80:80 nhe_app.

            Otherwise, the best advice I can give is:

            1. Learn the Passenger basics through a local installation (without Docker). Get the Passenger demo app working.
            2. Get your app working in that local Passenger installation.
            3. Apply what you have learned to implementing your app in passenger-docker.

            Source https://stackoverflow.com/questions/58199702

            QUESTION

            Docker Build - GPG error Phusion Passenger Enterprise
            Asked 2018-Apr-10 at 09:05

            Our docker build using passenger enterprise has stopped building.

            We have the following error:

            GPG error: https://www.phusionpassenger.com/enterprise_apt xenial Release: The following signatures were invalid: NODATA 2

            At this stage in the Dockerfile

            ...

            ANSWER

            Answered 2018-Apr-10 at 09:05

            Phusion Passenger team member here. For anyone still experiencing this problem: unfortunately some gpg keys were not properly imported when we migrated to a new server yesterday. The issue should be resolved now, but if you are still experiencing issues, try running apt clean && rm -rf /var/lib/apt/lists/* && apt update

            This will clear the local apt cache and retry the apt update. We are very sorry for the inconvenience caused by this.

            Source https://stackoverflow.com/questions/49744734

            QUESTION

            Passenger+Nginx+Docker app setup
            Asked 2017-Apr-25 at 18:48

            TL;DR = Cannot get Passenger/Nginx to call our application from Django. "passenger-status" does not show proper Application Group that is shown in our currently live non-Docker server.

            Trying to convert a live and running Passenger+Nginx+Django system to a Docker image. We started with the base Phusion:passenger-docker image and now trying to get it running like our live system. We followed the guide [here] but when we run the container, Passenger and Nginx do not run our application. Passenger provides the following output:

            ...

            ANSWER

            Answered 2017-Apr-25 at 18:48

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install passenger-docker

            There are several images, e.g. phusion/passenger-ruby26 and phusion/passenger-nodejs. Choose the one you want. See Image variants.

            Support

            Thanks for your interest in contributing! There are many ways to contribute to this project. Get started here.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/phusion/passenger-docker.git

          • CLI

            gh repo clone phusion/passenger-docker

          • sshUrl

            git@github.com:phusion/passenger-docker.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link