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

Latest commit

 

History

History
35 lines (22 loc) · 1.49 KB

File metadata and controls

35 lines (22 loc) · 1.49 KB

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.