Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

An extended version of phusion/passenger-docker with helpful tools

License

Notifications You must be signed in to change notification settings

propertybase/passenger-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extended version of the puhsion/passenger docker image

What's added/new:

  • Clean system-wide RAILS_ENV, RACK_ENV, NODE_ENV handling
  • Automated ENV variable setup
  • Prepared start scripts for sidekiq, clockwork, ...
  • Pre-installed helper like psql, redis-cli, wget, ruby rest-client
  • No sshd daemon (use docker exec) exclusivly
  • Syslog forwarding to Docker logs disabled by default
  • Nginx forwarding with tail disabled by default
  • Nginx log forwarding by symlinks to STDOUT and STDERR

Logs

Make sure your rails/rack/nodejs app logs to STDOUT e.g. with rails_stdout_logging

Environment Variables

  • Only docker exec -it <container> /bin/bash works corretly, because we can source the container_environment for bash. A command like docker exec -it <container> printenv shows, that all automaticly created environment variables like REDIS_URL do not exist.

Services

Sidekiq

Loads the default config/sidekiq.yml config file. Use this file for any configuration. DO NOT DEFINE ANY PID OR LOG FILES!

Clockwork

Specify an ENV CLOCKWORK_FILE variable in your Dockerfile to load clockwork with the correct file.

Credits

This image is based on the baseimage and passenger images by Phusion. The code in this repository to build and maintain the images is heavly inspired and copied from the Phusion repositories.

About

An extended version of phusion/passenger-docker with helpful tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published