Skip to content

cdslashetc/ctrp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctrp-docker

Tools to build CTRP-AUM in docker containers.

Default Settings

  • RAILS_ENV=development
    • valid values: development production qa test
  • GITHUB_TAG=develop

To begin with custom settings

cp ctrp-env.sh.in ctrp-env.sh

Then customize ctrp-env.sh before running startup script(s).

Notes

  • use phusion/passenger-ruby22 as a base image instead of ubuntu:14.04
    • contains functional init process
    • avoids PID 1 zombie reaping problem and associated memory leaks
    • already contains most of the software prerequisites
    • is actively maintained and developed by Phusion, makers of Passenger
    • eliminates unnecessary daemons and system processes
  • make use of environmental variables as much as possible
  • abstract out build env rather than specialized Dockerfile for each one
  • put sensible defaults in ctrp-env.sh.in and have user customize
  • mysecretpassword is not the real password but set in ctrp-env.sh
  • ctrp-env.sh is excluded from Github
  • load database from application container
    • makes it easy to use postgres running on host instead
    • makes it easy to use Enterprise postgres instead
    • postgres container does not require special Dockerfile
  • manual_phusion.txt notes from sample manual build with phusion/passenger-ruby22

About

Tools to build CTRP-AUM in docker containers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages