An error occurred fetching the project authors.
  1. 06 May, 2015 1 commit
  2. 04 May, 2015 1 commit
  3. 27 Apr, 2015 1 commit
  4. 07 Apr, 2015 1 commit
  5. 30 Mar, 2015 1 commit
  6. 23 Mar, 2015 1 commit
  7. 20 Mar, 2015 1 commit
  8. 10 Mar, 2015 1 commit
  9. 01 Mar, 2015 1 commit
  10. 24 Feb, 2015 1 commit
    • kfei's avatar
      Gracefully shutdown services in Docker container · 9338c632
      kfei authored
      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: default avatarkfei <kfei@kfei.net>
      9338c632
  11. 23 Feb, 2015 1 commit
  12. 30 Jan, 2015 1 commit
  13. 29 Jan, 2015 1 commit
  14. 15 Jan, 2015 1 commit
  15. 17 Dec, 2014 1 commit
    • kfei's avatar
      Reduce the size of Docker image · e9f974dc
      kfei authored
      1) Add `--no-install-recommends` option to `apt-get install`, this
         avoids lots of (~30MB) unnecessary packages.
      2) Add `ca-certificates` package for `wget` fetching stuffs from Amazon
         S3.
      3) There is no need to run `apt-get clean` for an image derived from
         official Ubuntu since they already cleaned (see also:
         http://goo.gl/B2SQRB) all the garbages produced by `apt-get`.
      Signed-off-by: default avatarkfei <kfei@kfei.net>
      e9f974dc
  16. 16 Dec, 2014 1 commit
  17. 04 Dec, 2014 4 commits
  18. 03 Dec, 2014 2 commits
  19. 02 Dec, 2014 2 commits
  20. 01 Dec, 2014 1 commit
  21. 28 Nov, 2014 2 commits
  22. 27 Nov, 2014 1 commit