1. 06 5月, 2015 1 次提交
  2. 04 5月, 2015 1 次提交
  3. 27 4月, 2015 1 次提交
  4. 07 4月, 2015 1 次提交
  5. 30 3月, 2015 1 次提交
  6. 23 3月, 2015 1 次提交
  7. 21 3月, 2015 1 次提交
  8. 11 3月, 2015 1 次提交
  9. 01 3月, 2015 1 次提交
  10. 24 2月, 2015 1 次提交
    • K
      Gracefully shutdown services in Docker container · 9338c632
      kfei 提交于
      The problem is `docker stop` only sends SIGTERM to the PID 1 inside the
      container, and the PID 1 (`/bin/sh -c ...`) does not take care of
      signals. Hence the services (e.g., postgresql, redis, sidekiq, etc)
      never have chances to graceful shutdown. Docker just kills the container
      after its 10 seconds timeout by default.
      
      What this commit does:
      
      1) Add a wrapper as the default executable of Docker container. Which
         starts services through `runit`, reconfigure Gitlab by `gitlab-ctl`
         and gracefully shutdown all services when a SIGTERM is received.
      2) Create an `assets` directory for assets.
      3) Add `.dockerignore` file.
      
      Now you'll see the following log messages after `docker stop`:
      ```
      SIGTERM signal received, try to gracefully shutdown all services...
      ok: down: logrotate: 1s, normally up
      ok: down: nginx: 0s, normally up
      ok: down: postgresql: 1s, normally up
      ok: down: redis: 0s, normally up
      ok: down: sidekiq: 0s, normally up
      ok: down: unicorn: 0s, normally up
      ```
      Signed-off-by: Nkfei <kfei@kfei.net>
      9338c632
  11. 23 2月, 2015 1 次提交
  12. 31 1月, 2015 1 次提交
  13. 29 1月, 2015 1 次提交
  14. 15 1月, 2015 1 次提交
  15. 17 12月, 2014 2 次提交
  16. 04 12月, 2014 4 次提交
  17. 03 12月, 2014 2 次提交
  18. 02 12月, 2014 2 次提交
  19. 01 12月, 2014 1 次提交
  20. 28 11月, 2014 2 次提交
  21. 27 11月, 2014 1 次提交